public virtual TaxDetail ToTaxDetail(cartDto.TaxDetail taxDeatilDto, Currency currency) { var result = new TaxDetail(currency); result.InjectFrom(taxDeatilDto); return(result); }
public virtual cartDto.TaxDetail ToCartTaxDetailDto(TaxDetail taxDetail) { var result = new cartDto.TaxDetail(); result.InjectFrom(taxDetail); return(result); }
public virtual cartDto.TaxDetail ToCartTaxDetailDto(TaxDetail taxDetail) { var result = new cartDto.TaxDetail(); result.Name = taxDetail.Name; result.Rate = (double)taxDetail.Rate.Amount; return(result); }
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); }
public static cartDto.TaxDetail ToCartTaxDetailDto(this TaxDetail taxDetail) { var result = new cartDto.TaxDetail { Name = taxDetail.Name, Rate = (double)taxDetail.Rate.Amount }; return(result); }
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); }
public static TaxDetail ToTaxDetail(this cartDto.TaxDetail taxDetail, Currency currency) { return(CartConverterInstance.ToTaxDetail(taxDetail, currency)); }