Beispiel #1
0
 public List <Plan> GetByRange(int skip, int take, string word)
 {
     return(_context.Plan
            .Where(PlanSpecs.GetPlan(word))
            .OrderBy(x => x.ValueEquipmentMain)
            .Skip((skip - 1) * take).Take(take).ToList());
 }
Beispiel #2
0
 public Plan GetById(int id)
 {
     return(_context.Plans.Where(PlanSpecs.GetById(id)).FirstOrDefault());
 }
Beispiel #3
0
 public int GetCount(string word)
 {
     return(_context.Plan.Where(PlanSpecs.GetPlan(word)).Count());
 }