public IEnumerable <UserGroup> GetBindableUserGroups() { return(UserGroupRepository.GetAllGroups().Where(g => !g.IsReadOnly).ToArray()); }
public IEnumerable <UserGroup> GetUserGroups(IEnumerable <int> ids) { return(UserGroupRepository.GetAllGroups().Where(g => ids.Contains(g.Id)).ToArray()); }
public IEnumerable <UserGroup> GetAllGroups() => UserGroupRepository.GetAllGroups();