public async Task CreateAssetExchangeAsync(ExchangeAsset model)
 {
     var command = _mapper.Map <CreateAssetExchangeCommand>(model);
     await _bus.SendCommandAsync(command);
 }
Пример #2
0
        public async Task <IActionResult> CreateAssetExchangeAsync([FromBody] ExchangeAsset model)
        {
            await _assetExchangeService.CreateAssetExchangeAsync(model);

            return(AppResponse(null, "操作成功"));
        }