Exemplo n.º 1
0
 public async Task <Driver> GetAsync(Guid userId)
 => await Drivers.AsQueryable().FirstOrDefaultAsync(x => x.UserId == userId);
Exemplo n.º 2
0
 public async Task <IEnumerable <Driver> > BrowseAsync()
 => await Drivers.AsQueryable().ToListAsync();
Exemplo n.º 3
0
 public async Task <Driver> GetAsync(string username)
 => await Drivers.AsQueryable().FirstOrDefaultAsync(x => x.Name == username);