public IEnumerable <Role> GetAllRoles()
        {
            _logger.Info($"BLL.{nameof(RoleBll)}.{nameof(GetAllRoles)}: Getting all roles");

            foreach (var item in _roleDao.GetAllRoles())
            {
                yield return(item);
            }
        }
Exemplo n.º 2
0
 public IList <Role> GetAllRoles()
 {
     return(_roleDao.GetAllRoles());
 }
Exemplo n.º 3
0
 public IEnumerable <Roles> GetAllRoles()
 {
     return(_roleDao.GetAllRoles());
 }
 public override bool IsUserInRole(string username, string roleName)
 {
     return(_roleDao.GetAllRoles(username).Contains(roleName));
 }