Esempio n. 1
0
 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));
 }
Esempio n. 2
0
        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));
        }