Exemplo n.º 1
0
        public static TaxLine ToViewModel(this DataContracts.TaxDetail taxDetail)
        {
            var taxLineModel = new TaxLine();

            taxLineModel.Price = taxDetail.Amount;
            taxLineModel.Rate  = taxDetail.Rate;
            taxLineModel.Title = taxDetail.Name;

            return(taxLineModel);
        }
Exemplo n.º 2
0
        public static DataContracts.TaxDetail ToServiceModel(this TaxLine taxLineModel)
        {
            var taxDetail = new DataContracts.TaxDetail();

            taxDetail.Amount = taxLineModel.Price;
            taxDetail.Name = taxLineModel.Title;
            taxDetail.Rate = taxLineModel.Rate;

            return taxDetail;
        }
Exemplo n.º 3
0
        public static DataContracts.TaxDetail ToServiceModel(this TaxLine taxLineModel)
        {
            var taxDetail = new DataContracts.TaxDetail();

            taxDetail.Amount = taxLineModel.Price;
            taxDetail.Name   = taxLineModel.Title;
            taxDetail.Rate   = taxLineModel.Rate;

            return(taxDetail);
        }