private IEnumerable <TEntity> GetAll() { return(_dbContext.Set <TEntity>().ToList()); }
public Task <IEnumerable <TEntity> > SearchAsync(LeatherbackDbContext dbContext, TSearchCriteria criteria) { return(Task.Run <IEnumerable <TEntity> >(() => dbContext.Set <TEntity>().Where(x => x.Id == criteria.Id).ToList())); }