Example #1
0
        public virtual BOVStateProvinceCountryRegion MapEFToBO(
            VStateProvinceCountryRegion ef)
        {
            var bo = new BOVStateProvinceCountryRegion();

            bo.SetProperties(
                ef.StateProvinceID,
                ef.CountryRegionCode,
                ef.CountryRegionName,
                ef.IsOnlyStateProvinceFlag,
                ef.StateProvinceCode,
                ef.StateProvinceName,
                ef.TerritoryID);
            return(bo);
        }
Example #2
0
        public virtual BOVStateProvinceCountryRegion MapModelToBO(
            int stateProvinceID,
            ApiVStateProvinceCountryRegionRequestModel model
            )
        {
            BOVStateProvinceCountryRegion boVStateProvinceCountryRegion = new BOVStateProvinceCountryRegion();

            boVStateProvinceCountryRegion.SetProperties(
                stateProvinceID,
                model.CountryRegionCode,
                model.CountryRegionName,
                model.IsOnlyStateProvinceFlag,
                model.StateProvinceCode,
                model.StateProvinceName,
                model.TerritoryID);
            return(boVStateProvinceCountryRegion);
        }