Example #1
0
 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,
         });
     }
 }
Example #2
0
 /// <inheritdoc />
 public async Task <List <User> > GetAllAsync()
 {
     return(await _userQuery.GetAllAsync());
 }
Example #3
0
 public async Task <ICollection <User> > GetAllAsync()
 {
     return(await _userQuery.GetAllAsync());
 }