public IActionResult Save(WebApplicationDto model) { UpdateAuditInformation(model); if (!ModelState.IsValid) { GetStateSettings(ViewState.Write); return(PartialView("Edit", model)); } model = model.Id > 0 ? _employeeFacadeApiClient.PutWebApplication(model.Id, model).Result : _employeeFacadeApiClient.PostWebApplication(model).Result; if (!string.IsNullOrWhiteSpace(model.ErrorMessage)) { return(PartialView("Edit", model)); } return(Json(new { message = model.SuccessMessage })); }