Пример #1
0
        public string Receptionist()
        {
            string          a  = HttpContext.Current.User.Identity.Name;
            tblreceptionist rr = db.tblreceptionists.Where(x => x.rid == a).First();

            return(rr.franchid.ToString());
        }
Пример #2
0
        public string RoleName()
        {
            var             name = (HttpContext.Current.User.Identity.IsAuthenticated? HttpContext.Current.User.Identity.Name : "Guest");
            tblreceptionist rr   = db.tblreceptionists.Where(x => x.rid == name).FirstOrDefault();

            return(rr.name);
        }
Пример #3
0
        public string Consoller()
        {
            var name = (HttpContext.Current.User.Identity.IsAuthenticated ? HttpContext.Current.User.Identity.Name : "Guest");

            if (name == "Guest")
            {
            }
            tblreceptionist rr = db.tblreceptionists.Where(x => x.rid == name).FirstOrDefault();

            return(rr.franchid);
        }