public async Task RevokeAssetExchangeAsync(RevokeAssetExchange model) { var command = _mapper.Map <RevokeAssetExchangeCommand>(model); await _bus.SendCommandAsync(command); }
public async Task <IActionResult> RevokeAssetExchangeAsync([FromBody] RevokeAssetExchange model) { await _assetExchangeService.RevokeAssetExchangeAsync(model); return(AppResponse(null, "事件已撤销")); }