예제 #1
0
        public virtual BOSalesTaxRate MapEFToBO(
            SalesTaxRate ef)
        {
            var bo = new BOSalesTaxRate();

            bo.SetProperties(
                ef.SalesTaxRateID,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid,
                ef.StateProvinceID,
                ef.TaxRate,
                ef.TaxType);
            return(bo);
        }
예제 #2
0
        public virtual BOSalesTaxRate MapModelToBO(
            int salesTaxRateID,
            ApiSalesTaxRateRequestModel model
            )
        {
            BOSalesTaxRate boSalesTaxRate = new BOSalesTaxRate();

            boSalesTaxRate.SetProperties(
                salesTaxRateID,
                model.ModifiedDate,
                model.Name,
                model.Rowguid,
                model.StateProvinceID,
                model.TaxRate,
                model.TaxType);
            return(boSalesTaxRate);
        }