Exemplo n.º 1
0
 public virtual async Task <TModel> GetFilteredAsync(Expression <Func <TModel, bool> > filter, CancellationToken cancellationToken = default)
 {
     return(await FilteredQuery.FirstOrDefaultAsync(filter, cancellationToken));
 }
Exemplo n.º 2
0
 public virtual async Task <TModel> GetFilteredAsync(TKey id, CancellationToken cancellationToken = default)
 {
     return(await FilteredQuery.FirstOrDefaultAsync(x => x.Id.Equals(id), cancellationToken));
 }