コード例 #1
0
        public async Task <IReadOnlyList <VoucherModel> > GetBySpendRuleIdAsync(Guid spendRuleId)
        {
            var vouchers = await _vouchersService.GetBySpendRuleIdAsync(spendRuleId);

            var model = _mapper.Map <List <VoucherModel> >(vouchers);

            return(model);
        }