Exemplo n.º 1
0
        public List <RoleAccessDTOs> GetRoleAccessData(int roleID)
        {
            List <RolesAccess> roleAccessData = _unitOfWork.RolesAccessRepository.Get(x => x.AssignRoleId == roleID).ToList();

            if (roleAccessData != null)
            {
                return(RoleAccessResponseFormatter.GetAllRolesAndAccess(roleAccessData));
            }
            //throw new UnauthorizedAccessException("User Not Found");
            return(null);
        }