I am making an application where the authentication to that is bind to Azure Active Directory.
I need to get the first name and last name of logged in user. Currently I am able to get username by using
public string name
{
get
{
return HttpContext.Current.User.Identity.Name;
}
}
It returns me "Subham.kumar@nathcorp.com", but I don't need the whole username.