public async Task <IActionResult> Index(int page = 1, string searchName = "") { if (string.IsNullOrEmpty(searchName)) { var item = _noticeBll.GetNoticeTracking(); var model = await PagingList.CreateAsync(item, 5, page); return(View(model)); } else { var item = _noticeBll.GetNoticeTracking(searchName); var model = await PagingList.CreateAsync(item, 5, page); return(View(model)); } }