I am trying to get the this
User.Identity.Name,
I can get it in the controllers, but I would like to know if it can be done outside a controller on a simple class, Somethikng like this
Public string GetUserEmail()
{
var userEmail = User.Identity.Name
}