示例#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);
        }