public virtual void Add(T entity) { _context.Set <T>().Add(entity); Save(); }
public override IEnumerable <ClientPolicy> GetBy(Expression <Func <ClientPolicy, bool> > expression) { return(_context.Set <ClientPolicy>().Include("Client").Include("Policy").Where(expression)); }