Esempio n. 1
0
        public PartialViewResult List(int?page)
        {
            var items = NewsCategoryRepository.GetAll().Select(x => x.ToDataViewModel()).ToList();

            var pageNumber = page ?? 1;

            return(PartialView(items.ToPagedList(pageNumber, TechOfficeConfig.PAGESIZE)));
        }
Esempio n. 2
0
 public IQueryable <NewsCategory> GetAll()
 {
     return(_newsCategoryRepository.GetAll());
 }