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()); }
public Plan GetById(int id) { return(_context.Plans.Where(PlanSpecs.GetById(id)).FirstOrDefault()); }
public int GetCount(string word) { return(_context.Plan.Where(PlanSpecs.GetPlan(word)).Count()); }