//public ActionResult Index(SO.Urba.Models.ViewModels.ContactInfoSearchFilterVm input = null, Paging paging = null) //{ // if (input == null) input = new ContactInfoSearchFilterVm(); // input.paging = paging; // if (this.ModelState.IsValid) // { // if (input.submitButton != null) // input.paging.pageNumber = 1; // input = contactInfoManager.search(input); // return View(input); // } // return View(input); //} public ActionResult Index(SearchFilterVm input = null, Paging paging = null) { if (input == null) { input = new SearchFilterVm(); } input.paging = paging; if (this.ModelState.IsValid) { if (input.submitButton != null) { input.paging.pageNumber = 1; } input = contactInfoManager.search(input); return(View(input)); } return(View(input)); }