public ActionResult SearchAvailable(int id, string query) { var model = new RouteMarketsViewModel() { RouteId = id }; if (query != null) { model = _marketServices.GetRouteMarketsById(id, CurrentTenantId, query); } return(PartialView("_SearchAvailableResult", model)); }