public virtual T GetById(string id) { return(_dbContext.Set <T>().Find(id)); }
public async virtual Task <IEnumerable <T> > GetAll() { return(await context.Set <T>().AsNoTracking().ToListAsync()); }
public virtual T GetById(string id) { return(_dbContext.Set <T>().Find(id)); }
public async virtual Task <IEnumerable <T> > GetAll() { return(await context.Set <T>().AsNoTracking().ToListAsync()); }