public async Task <IActionResult> Revoke(RevokeAssetApply model) { await _assetApplyService.RevokeAsync(model); return(AppResponse(null, "事件已撤销")); }
/// <summary> /// 撤销资产申请 /// </summary> /// <param name="model"></param> /// <returns></returns> public async Task RevokeAsync(RevokeAssetApply model) { var command = _mapper.Map <RevokeAssetApplyCommand>(model); await _bus.SendCommandAsync(command); }