public async Task <IActionResult> SubmitForm([FromBody] BaseSubmitInput <DrugsDto> input) { DrugsEntity entity; if (input.KeyValue.IsEmpty()) { entity = _mapper.Map <DrugsEntity>(input.Entity); } else { entity = await _drugsApp.GetForm(input.KeyValue); } entity.CheckArgumentIsNull(nameof(entity)); await _drugsApp.SubmitForm(entity, input.Entity); return(Success("操作成功。")); }