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()); }
public int GetVideoCountByCompany(int id) { return(_context.VideoEquipment .Where(VideoEquipmentSpecs.GetVideoByCompany(id)).Count()); }