Example #1
0
 public List <TimeVideo> GetByRange(int skip, int take, string word)
 {
     return(_context.TimeVideo
            .Where(TimeVideoSpecs.GetTimeVideo(word))
            .OrderBy(x => x.Time)
            .Skip((skip - 1) * take).Take(take).ToList());
 }
Example #2
0
 public int GetCount(string word)
 {
     return(_context.TimeVideo.Where(TimeVideoSpecs.GetTimeVideo(word)).Count());
 }