public List <CategoryVideo> GetByRange(int skip, int take, string word) { return(_context.CategoryVideo .Where(CategoryVideoSpecs.GetCategoryVideo(word)) .OrderBy(x => x.Category) .Skip((skip - 1) * take).Take(take).ToList()); }
public int GetCount(string word) { return(_context.CategoryVideo.Where(CategoryVideoSpecs.GetCategoryVideo(word)).Count()); }