Esempio n. 1
0
        /// <summary>
        /// 列表页面
        /// </summary>
        /// <param name="searchString"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        public IActionResult List(string searchString, int?page)
        {
            ViewBag.searchString = string.IsNullOrWhiteSpace(searchString) ? "" : searchString;
            int pageNumber = (page ?? 1);
            int pageSize   = 15;

            VideoBLL videoBLL = new VideoBLL();
            IPagedList <VideoEntity> videoEntities = videoBLL.AdminPageList(pageNumber, pageSize, searchString);

            return(View(videoEntities));
        }