예제 #1
0
        public async Task <IActionResult> SubmitForm([FromBody] BaseSubmitInput <AreaDto> input)
        {
            AreaEntity entity = null;

            if (input.KeyValue.IsEmpty())
            {
                entity = _mapper.Map <AreaEntity>(input.Entity);
            }
            else
            {
                entity = await _areaApp.GetForm(input.KeyValue);
            }
            entity.CheckArgumentIsNull(nameof(entity));
            await _areaApp.SubmitForm(entity, input.Entity);

            return(Success("操作成功。"));
        }