public async Task <JsonResult> SaveChange([FromBody] Organization entity) { try { if (entity.Id == 0) { await orgAppService.PostOrganization(entity); } else { await orgAppService.PutOrganization(entity); } return(Json(new AjaxResponse { Success = true, Result = "" })); } catch (Exception ex) { Logger.Error(ex.Message); return(Json(new AjaxResponse { Success = false, Result = ex.Message })); } }