Ejemplo n.º 1
0
 public List <HistoryEquipment> GetByRangeEquipment(int skip, int take, int id)
 {
     return(_context
            .HistoryEquipment
            .Include("Video.Company")
            .Include("Video.Plan")
            .Where(HistoryEquipmentSpecs.GetHistoryEquipment(id))
            .OrderBy(x => x.IdHistoryEquipment).Skip((skip - 1) * take)
            .Take(take).ToList());
 }
Ejemplo n.º 2
0
 public int GetCountByCompany(int id)
 {
     return(_context.HistoryEquipment
            .Where(HistoryEquipmentSpecs.GetHistoryCompany(id))
            .Count());
 }