public IActionResult PersonCase(PersonCaseSearchModel model) { model = InitializePersonCaseModel(model); if (Request.IsAjaxRequest()) { model = _customerApiClient.GetPersonCases(model).Result; return(PartialView("PersonCase", model)); } return(View(model)); }
public IActionResult Index(int personId) { var model = InitializeModel(null); model.PersonId = personId; if (Request.IsAjaxRequest()) { model = _customerFacadeApiClient.GetPersonCases(model).Result; return(PartialView("Index", model)); } return(View(model)); }