Пример #1
0
        public IActionResult GetUsersToGrantAuthority(int authorityId)
        {
            var userId  = Int16.Parse(User.Claims.FirstOrDefault(x => x.Type == AccountConstant.userId).Value);
            var orgCode = User.Claims.FirstOrDefault(x => x.Type == AuthorityConstant.orgCode).Value;

            return(Json(_authorityRepository.GetUsersToGrantAuthority(authorityId, userId, orgCode)));
        }