public ActionResult SearchByCustomerName(SearchViewModel searchModel) { Logger.Debug("SearchByCustomerName|Search customer by name: " + searchModel.SearchCustomerName.CustomerName); IList <ICustomerVO> customerList = CustomerBO.RetrieveCustomersByName(searchModel.SearchCustomerName.CustomerName); Logger.Debug("SearchByCustomerName|Search Result: " + (customerList != null ? customerList.Count : 0)); TempData["SearchResultList"] = customerList; return(RedirectToAction("ViewSearchResult")); }