public async Task <IActionResult> SubmitForm([FromBody] BaseSubmitInput <PatientDto> input) { PatientEntity entity = null; if (input.KeyValue.IsEmpty()) { try { entity = _mapper.Map <PatientEntity>(input.Entity); } catch (Exception ex) { var s = ex.Message; } } else { entity = await _patientApp.GetForm(input.KeyValue); } entity.CheckArgumentIsNull(nameof(entity)); await _patientApp.SubmitForm(entity, input.Entity); return(Success("操作成功。")); }