public IEnumerable <Hero> GetAll() { return(heroContext.Set <Hero>().ToList()); }
public virtual async Task <IEnumerable <T> > GetAllAsync() { return(await _context.Set <T>().ToListAsync()); }
public GenericRepository(HeroContext context) { _context = context; dbSet = context.Set <TEntity>(); }