Exemple #1
0
 public List <VideoEquipment> GetByRangeCompany(int skip, int take, int id)
 {
     return(_context.VideoEquipment
            .Include("Equipment")
            .Include("Video")
            .Include("Video.Plan")
            .Include("Video.Company")
            .Include("ControlLoan.Company")
            .Where(VideoEquipmentSpecs.GetVideoByCompany(id))
            .OrderBy(x => x.IdVideoEquipment)
            .Skip((skip - 1) * take).Take(take).ToList());
 }
Exemple #2
0
 public int GetVideoCountByCompany(int id)
 {
     return(_context.VideoEquipment
            .Where(VideoEquipmentSpecs.GetVideoByCompany(id)).Count());
 }