예제 #1
0
        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));
            }
        }