Esempio n. 1
0
        public bool IsAdmin()
        {
            Role role = db.GetEmployeeRole(Global.employee.Id);

            if (role.Equals(Role.ROLE_ADMIN))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }