Example #1
0
        //[Authorize(Users = "test")]
        public IEnumerable <Employee> GetAll()
        {
            string rang = (User.Identity as ClaimsIdentity).FindFirst("rang").Value;

            return(rang.Contains("Anonymous") ? _hrrepository.GetEmployees() : GetListAllbyHid(rang));
        }