Example #1
0
        public IActionResult Save(PersonCaseDto model)
        {
            bool success;

            model = model.Id == 0 ? _customerFacadeApiClient.PostPersonCase(model).Result
                : _customerFacadeApiClient.PutPersonCase(model.Id, model).Result;
            success = string.IsNullOrWhiteSpace(model.ErrorMessage);
            return(Json(new { success, message = success ? model.SuccessMessage : model.ErrorMessage }));
        }