コード例 #1
0
        public async Task <TransferVoucherErrorCodes> TransferVoucherAsync([FromBody] VoucherTransferModel model)
        {
            var result = await _vouchersService.TransferVoucherAsync(
                model.VoucherShortCode,
                model.OldOwnerId,
                model.NewOwnerId);

            return(_mapper.Map <TransferVoucherErrorCodes>(result));
        }