1234567891011121314151617181920212223 |
- using System.ComponentModel;
- using CZKJ.GBRS2.Interface;
- using Microsoft.AspNetCore.Mvc;
- namespace CZKJ.GBRS2.WebMVC.Controllers
- {
- public class VideoController : Controller
- {
- IVideo _videoLogic;
- public VideoController(IVideo videoLogic)
- {
- _videoLogic = videoLogic;
- }
- public IActionResult Index(int pageIndex=1,int pageSize=6)
- {
- int rowsCount;
- var list = _videoLogic.GetEntities(out rowsCount,null ,pageIndex,pageSize,x =>x.SortOrder,ListSortDirection.Descending);
- ViewBag.RowsCount = rowsCount;
- ViewBag.PageIndex = pageIndex;
- return View(list);
- }
- }
- }
|