コード例 #1
0
        public async Task <PrintingEditionModel> GetPrintingEditionDetailsAsync(long printingEditionId, Enums.Currency currency)
        {
            var responseModel = new PrintingEditionModel();

            var printingEditionData = await _printingEditionRepository.GetPrintingEditionDetailsAsync(printingEditionId);

            var printingEdition = printingEditionData.MapToModel(currency);

            printingEdition.Price = _currencyConverterHelper.Convert(Enums.Currency.USD, currency, printingEdition.Price);

            responseModel.Items.Add(printingEdition);

            return(responseModel);
        }