public BaseRepository(ApplicationDbContext context /*, IMapper mapper*/) { Context = context; DbSet = Context.Set <TEntity>(); }
public async Task <List <Product> > GetAllAsync() { return(await db.Set <Product>().ToListAsync()); }
public BaseRepository(ApplicationDbContext context /*, IMapper mapper*/) { Context = context; DbSet = Context.Set <TEntity>(); }
public async Task <List <Product> > GetAllAsync() { return(await db.Set <Product>().ToListAsync()); }