public ActionResult LoadLogs(TerminalSetupLogs_QueryModel conditions, int?searchPage) { var model = new SearchDataWithPagedDatas <TerminalSetupLogs_QueryModel, TerminalSetupLogs_DataModel>(); model.SearchModel = conditions; if (searchPage == null) { searchPage = 1; } var result = TerminalSettingsBLL.QueryTerminalSetupLogs( conditions.CompanyName, conditions.PlateNumber, conditions.TerminalCode, conditions.SettingType, conditions.StartTime, conditions.EndTime, searchPage.Value ); model.PagedDatas = result.Item1.ToPagedList(searchPage.Value, 10, result.Item2); ViewBag.Settings = ""; return(PartialView("Logs_DataTable", model)); }