How can I get the current user\'s login name from Windows Active Directory using C# code?
I have this in my view and works perfectly for me!
Welcome, @User.Identity.Name.Replace("AD-GROUP-NAME\\", "").Replace(".", " ")