protected virtual IQueryable <TEntity> GetQuery(SportContext context) { return(context.Set <TEntity>()); }
public async Task AddAsync(TEntity entity) { await Context.Set <TEntity>().AddAsync(entity); await Context.SaveChangesAsync(); }