public IEnumerable <Role> GetAllRoles() { _logger.Info($"BLL.{nameof(RoleBll)}.{nameof(GetAllRoles)}: Getting all roles"); foreach (var item in _roleDao.GetAllRoles()) { yield return(item); } }
public IList <Role> GetAllRoles() { return(_roleDao.GetAllRoles()); }
public IEnumerable <Roles> GetAllRoles() { return(_roleDao.GetAllRoles()); }
public override bool IsUserInRole(string username, string roleName) { return(_roleDao.GetAllRoles(username).Contains(roleName)); }