public async IAsyncEnumerable <User> GetItemsForUserAsync(string userName) { await foreach (var item in _userQuery.GetAllAsync()) { yield return(new User { Id = item.Id, Username = item.Username, EMail = item.EMail, }); } }
/// <inheritdoc /> public async Task <List <User> > GetAllAsync() { return(await _userQuery.GetAllAsync()); }
public async Task <ICollection <User> > GetAllAsync() { return(await _userQuery.GetAllAsync()); }