コード例 #1
0
        public async Task <RedeemVoucherErrorCodes> RedeemVoucherAsync([FromBody] VoucherRedeptionModel model)
        {
            var result = await _vouchersService.RedeemVoucherAsync(model.VoucherShortCode, model.VoucherValidationCode);

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