Ejemplo n.º 1
0
        // GET: Admin/ContentAdmin
        public ActionResult Index(int?page, string searchString = null)
        {
            var listContent      = _contentServices.ListAllByName(searchString);
            int pageSize         = 10;
            int pageNumber       = (page ?? 1);
            var listContentPaged = listContent.ToPagedList(pageNumber, pageSize);

            ViewBag.Category = _contentServices.GetContentCategory();
            return(View(listContentPaged));
        }