public async Task CreateAssetExchangeAsync(ExchangeAsset model) { var command = _mapper.Map <CreateAssetExchangeCommand>(model); await _bus.SendCommandAsync(command); }
public async Task <IActionResult> CreateAssetExchangeAsync([FromBody] ExchangeAsset model) { await _assetExchangeService.CreateAssetExchangeAsync(model); return(AppResponse(null, "操作成功")); }