public void Add(T entity) { _context.Set <T>().Add(entity); }
public int Count(Expression <Func <T, bool> > predicate) { return(_context.Set <T>().Where(predicate).Count()); }