Exemple #1
0
 public List <ControlLoan> GetByRange(int skip, int take, string word, EStatusControlLoan status)
 {
     return(_context.ControlLoan
            .Include("Company")
            .Include("Equipment")
            .Include("Equipment.TypeEquipment")
            .Where(ControlLoanSpecs.GetSearchControlLoan(word, status))
            .OrderBy(x => x.IdControlLoan).Skip((skip - 1) * take).Take(take).ToList());
 }
Exemple #2
0
 public int GetCount(string word, EStatusControlLoan status)
 {
     return(_context.ControlLoan.Where(ControlLoanSpecs.GetSearchControlLoan(word, status)).Count());
 }