public virtual ApiStateProvinceResponseModel MapBOToModel(
            BOStateProvince boStateProvince)
        {
            var model = new ApiStateProvinceResponseModel();

            model.SetProperties(boStateProvince.StateProvinceID, boStateProvince.CountryRegionCode, boStateProvince.IsOnlyStateProvinceFlag, boStateProvince.ModifiedDate, boStateProvince.Name, boStateProvince.Rowguid, boStateProvince.StateProvinceCode, boStateProvince.TerritoryID);

            return(model);
        }
        public virtual BOStateProvince MapEFToBO(
            StateProvince ef)
        {
            var bo = new BOStateProvince();

            bo.SetProperties(
                ef.StateProvinceID,
                ef.CountryRegionCode,
                ef.IsOnlyStateProvinceFlag,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid,
                ef.StateProvinceCode,
                ef.TerritoryID);
            return(bo);
        }
        public virtual StateProvince MapBOToEF(
            BOStateProvince bo)
        {
            StateProvince efStateProvince = new StateProvince();

            efStateProvince.SetProperties(
                bo.CountryRegionCode,
                bo.IsOnlyStateProvinceFlag,
                bo.ModifiedDate,
                bo.Name,
                bo.Rowguid,
                bo.StateProvinceCode,
                bo.StateProvinceID,
                bo.TerritoryID);
            return(efStateProvince);
        }
        public virtual BOStateProvince MapModelToBO(
            int stateProvinceID,
            ApiStateProvinceRequestModel model
            )
        {
            BOStateProvince boStateProvince = new BOStateProvince();

            boStateProvince.SetProperties(
                stateProvinceID,
                model.CountryRegionCode,
                model.IsOnlyStateProvinceFlag,
                model.ModifiedDate,
                model.Name,
                model.Rowguid,
                model.StateProvinceCode,
                model.TerritoryID);
            return(boStateProvince);
        }