public ActionResult Domain(int rowCount = 25, int page = 1, string keyword = null, string name = null, string bigFootOwned = null, string websiteCurrent = null, string locked = null, string websiteUse = null, string BFStrategy = null, string buySideFunnel = null, string FMVOrderOfMagnitude = null, string companyWebsite = null, string status = null, string autoRenew = null, string version = null, string WHOIS = null, string category = null) { var searchResultObject = new VMSearchResultObject <DomainN> { Caption = "Domain" }; var startIndex = (page - 1) * rowCount; var query = DomainUtils.BuildQuery(startIndex, rowCount, keyword ?? name, bigFootOwned, websiteCurrent, locked, websiteUse, BFStrategy, buySideFunnel, FMVOrderOfMagnitude, companyWebsite, status, autoRenew, version, WHOIS, category); var domains = this._managementDomainService.GetByQuery(query.Item1, query.Item2, out int total); searchResultObject.ObjectResult = new VMPageResult <DomainN> { StartIndex = startIndex, RowCount = rowCount, Page = page, Total = total, Records = domains }; if (!string.IsNullOrWhiteSpace(keyword)) { var searchResultWrapperList = this._searchService.Search(name ?? keyword); searchResultObject.SearchResult = new VMSearchResult { Table = searchResultWrapperList }; } ViewBag.Keyword = keyword ?? name; ViewBag.IsAdvanceSearch = string.IsNullOrWhiteSpace(keyword); return(View(searchResultObject)); }