public IActionResult Tenant(TenantSearchModel model) { model = InitializeTenantModel(model); if (Request.IsAjaxRequest()) { var result = _customerApiClient.GetTenants(model).Result; result.PropertyCode = result.TenantSearchResult.First()?.Property?.PropertyCode; return(PartialView(result)); } return(View(model)); }
public IActionResult Details(string tenantCode) { var model = InitializeModel(null); model.TenantCode = tenantCode; if (Request.IsAjaxRequest()) { model = _customerFacadeApiClient.GetTenants(model).Result; return(PartialView("Index", model)); } return(View("Index", model)); }