public List <FamousPeople> GetByCategoryPaging(string CategoryOid, int Page, int PageSize) { return(MockFamousPeople.Where(item => item.CategoryOid == CategoryOid) .Skip(Page * PageSize) .Take(PageSize) .ToList()); }
public FamousPeople GetByOid(string Oid) { return(MockFamousPeople.First()); }
public List <FamousPeople> GetByCategory(string CategoryOid) { return(MockFamousPeople.Where(item => item.CategoryOid == CategoryOid).ToList()); }