Last post Jun 29, 2016 07:33 AM by PatriceSc
Jun 29, 2016 04:22 AM|longinos|LINK
I am trying to get the this
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
Jun 29, 2016 07:33 AM|PatriceSc|LINK
System.Web.HttpContext.Current allows to access to the current request and so you could use System.Web.HttpContext.Current.User.Identity.Name.