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

            if (sdto == null)
            {
                return(-1);
            }

            return(sdto.Role);
        }
Example #2
0
        public string getEmail()
        {
            SessionDTO sdto = (SessionDTO)HttpContext.Current.Session["Session"];

            if (sdto == null)
            {
                return(null);
            }

            return(sdto.Email);
        }