Esempio n. 1
0
        public virtual TaxDetail ToTaxDetail(cartDto.TaxDetail taxDeatilDto, Currency currency)
        {
            var result = new TaxDetail(currency);

            result.InjectFrom(taxDeatilDto);
            return(result);
        }
Esempio n. 2
0
        public virtual cartDto.TaxDetail ToCartTaxDetailDto(TaxDetail taxDetail)
        {
            var result = new cartDto.TaxDetail();

            result.InjectFrom(taxDetail);
            return(result);
        }
Esempio n. 3
0
        public virtual cartDto.TaxDetail ToCartTaxDetailDto(TaxDetail taxDetail)
        {
            var result = new cartDto.TaxDetail();

            result.Name = taxDetail.Name;
            result.Rate = (double)taxDetail.Rate.Amount;
            return(result);
        }
Esempio n. 4
0
        public virtual TaxDetail ToTaxDetail(cartDto.TaxDetail taxDeatilDto, Currency currency)
        {
            var result = new TaxDetail(currency);

            result.Name = taxDeatilDto.Name;
            result.Rate = new Money(taxDeatilDto.Rate ?? 0, currency);
            return(result);
        }
Esempio n. 5
0
        public static cartDto.TaxDetail ToCartTaxDetailDto(this TaxDetail taxDetail)
        {
            var result = new cartDto.TaxDetail
            {
                Name = taxDetail.Name,
                Rate = (double)taxDetail.Rate.Amount
            };

            return(result);
        }
Esempio n. 6
0
        public static TaxDetail ToTaxDetail(this cartDto.TaxDetail taxDeatilDto, Currency currency)
        {
            var result = new TaxDetail(currency)
            {
                Name = taxDeatilDto.Name,
                Rate = new Money(taxDeatilDto.Rate ?? 0, currency)
            };

            return(result);
        }
Esempio n. 7
0
 public static TaxDetail ToTaxDetail(this cartDto.TaxDetail taxDetail, Currency currency)
 {
     return(CartConverterInstance.ToTaxDetail(taxDetail, currency));
 }