public List <TypeVideo> GetByRange(int skip, int take, string word) { return(_context.TypeVideo .Where(TypeVideoSpecs.GetTypeVideo(word)) .OrderBy(x => x.Type) .Skip((skip - 1) * take).Take(take).ToList()); }
public int GetCount(string word) { return(_context.TypeVideo.Where(TypeVideoSpecs.GetTypeVideo(word)).Count()); }