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); }
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); }
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); }
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); }