Example #1
0
 public async Task <IActionResult> Index(int page = 1)
 {
     ViewBag.currentPage = page;
     ViewBag.totalPage   = TotalPage(CategoryBLL.Cout());
     return(View(await CategoryBLL.Get(numberPerPage, page, orderBy: p => p.OrderByDescending(x => x.EditedDate))));
 }