public string getEmail() { SessionDTO sdto = (SessionDTO)HttpContext.Current.Session["Session"]; if (sdto == null) { return(null); } return(sdto.Email); }
public int getRole() { SessionDTO sdto = (SessionDTO)HttpContext.Current.Session["Session"]; if (sdto == null) { return(-1); } return(sdto.Role); }