Пример #1
0
        public virtual ApiSalesTaxRateResponseModel MapBOToModel(
            BOSalesTaxRate boSalesTaxRate)
        {
            var model = new ApiSalesTaxRateResponseModel();

            model.SetProperties(boSalesTaxRate.SalesTaxRateID, boSalesTaxRate.ModifiedDate, boSalesTaxRate.Name, boSalesTaxRate.Rowguid, boSalesTaxRate.StateProvinceID, boSalesTaxRate.TaxRate, boSalesTaxRate.TaxType);

            return(model);
        }
Пример #2
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);
        }
Пример #3
0
        public virtual SalesTaxRate MapBOToEF(
            BOSalesTaxRate bo)
        {
            SalesTaxRate efSalesTaxRate = new SalesTaxRate();

            efSalesTaxRate.SetProperties(
                bo.ModifiedDate,
                bo.Name,
                bo.Rowguid,
                bo.SalesTaxRateID,
                bo.StateProvinceID,
                bo.TaxRate,
                bo.TaxType);
            return(efSalesTaxRate);
        }
Пример #4
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);
        }