Beispiel #1
0
        public int getRole()
        {
            SessionDTO ndto = (SessionDTO)HttpContext.Current.Session["Session"];

            return((ndto != null) ? ndto.Role : -1);
        }
Beispiel #2
0
        public string getEmail()
        {
            SessionDTO ndto = (SessionDTO)HttpContext.Current.Session["Session"];

            return(ndto?.Email);
        }
Beispiel #3
0
        public string getName()
        {
            SessionDTO ndto = (SessionDTO)HttpContext.Current.Session["Session"];

            return(ndto?.Name);
        }