public ActionResult ToDo_Search(string keySearch, int currentPage) { var todoBl = new ToDoBL(); List <ToDoInfo> lstToDo = new List <ToDoInfo>(); try { decimal totalRecord = 0; lstToDo = todoBl.Search(currentPage, ref totalRecord, keySearch); string htmlPaging = CommonFuc.Get_HtmlPaging <ToDoInfo>((int)totalRecord, 1, "công việc"); ViewBag.Paging = htmlPaging; ViewBag.ListToDo = lstToDo; ViewBag.SumRecord = totalRecord; } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(PartialView("~/Areas/ToDo/Views/ToDo/_Partial_ToDo_List.cshtml")); }
public ActionResult ToDo_Display() { var todoBl = new ToDoBL(); List <ToDoInfo> lstToDo = new List <ToDoInfo>(); try { decimal totalRecord = 0; lstToDo = todoBl.Search(1, ref totalRecord); string htmlPaging = CommonFuc.Get_HtmlPaging <ToDoInfo>((int)totalRecord, 1, "công việc"); ViewBag.Paging = htmlPaging; ViewBag.ListToDo = lstToDo; ViewBag.SumRecord = totalRecord; } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(View("~/Areas/ToDo/Views/ToDo/ToDo_Display.cshtml")); }