public ActionResult RecycledEnquiryList() { int pageIndex = 1; int pageSize = 10; if (!string.IsNullOrEmpty(Request["pageIndex"])) { int.TryParse(Request["pageIndex"].ToString(), out pageIndex); } if (!string.IsNullOrEmpty(Request["pageSize"])) { int.TryParse(Request["pageSize"].ToString(), out pageSize); } long intentionId = 0; if (!string.IsNullOrEmpty(Request["intentionId"])) { long.TryParse(Request["intentionId"].ToString(), out intentionId); } long languageId = 0; if (!string.IsNullOrEmpty(Request["languageId"])) { long.TryParse(Request["languageId"].ToString(), out languageId); } long userDefinedId = 0; if (!string.IsNullOrEmpty(Request["userDefinedId"])) { long.TryParse(Request["userDefinedId"].ToString(), out userDefinedId); } PageModel <Enquiry> pageModel = EnquiryService.GetRecycledEnquiryPages(CurrentManager.Id, languageId, intentionId, userDefinedId, pageIndex, pageSize); ViewBag.CurrentManager = CurrentManager; ViewBag.Intentions = BaseService.GetIntentions(CurrentManager.ParentId != 0 ? CurrentManager.ParentId : CurrentManager.Id); ViewBag.UserDefineds = BaseService.GetUserDefineds(CurrentManager.ParentId != 0 ? CurrentManager.ParentId : CurrentManager.Id); ViewBag.ChildManagers = ManageService.GetChildManagers(CurrentManager.Id); return(View(pageModel)); }