public PartialViewResult Search(string query) { SearchModel searchModel = new SearchModel(); searchModel.Query = query; searchModel.PageNumber = 1; var searchResults = searchBusiness.GetSearchResult(query); if (searchResults != null) { searchModel.SearchResults = searchResults; return(PartialView("index", searchModel)); } return(PartialView("index", searchModel)); }