public int getRole() { SessionDTO ndto = (SessionDTO)HttpContext.Current.Session["Session"]; return((ndto != null) ? ndto.Role : -1); }
public string getEmail() { SessionDTO ndto = (SessionDTO)HttpContext.Current.Session["Session"]; return(ndto?.Email); }
public string getName() { SessionDTO ndto = (SessionDTO)HttpContext.Current.Session["Session"]; return(ndto?.Name); }