Ejemplo n.º 1
0
 public int GetCount(string word, EStatusContract statusContract)
 {
     return(_context.Contract.Where(ContractSpecs.GetSearchContract(word, statusContract)).Count());
 }
Ejemplo n.º 2
0
 public List <Contract> GetByRange(int skip, int take, string word, EStatusContract statusContract)
 {
     return(_context.Contract.Include("Company").Where(ContractSpecs.GetSearchContract(word, statusContract))
            .OrderBy(x => x.IdContract).Skip((skip - 1) * take).Take(take).ToList());
 }