public virtual ApiCountryRegionCurrencyResponseModel MapBOToModel(
            BOCountryRegionCurrency boCountryRegionCurrency)
        {
            var model = new ApiCountryRegionCurrencyResponseModel();

            model.SetProperties(boCountryRegionCurrency.CountryRegionCode, boCountryRegionCurrency.CurrencyCode, boCountryRegionCurrency.ModifiedDate);

            return(model);
        }
Пример #2
0
        public virtual BOCountryRegionCurrency MapEFToBO(
            CountryRegionCurrency ef)
        {
            var bo = new BOCountryRegionCurrency();

            bo.SetProperties(
                ef.CountryRegionCode,
                ef.CurrencyCode,
                ef.ModifiedDate);
            return(bo);
        }
Пример #3
0
        public virtual CountryRegionCurrency MapBOToEF(
            BOCountryRegionCurrency bo)
        {
            CountryRegionCurrency efCountryRegionCurrency = new CountryRegionCurrency();

            efCountryRegionCurrency.SetProperties(
                bo.CountryRegionCode,
                bo.CurrencyCode,
                bo.ModifiedDate);
            return(efCountryRegionCurrency);
        }
        public virtual BOCountryRegionCurrency MapModelToBO(
            string countryRegionCode,
            ApiCountryRegionCurrencyRequestModel model
            )
        {
            BOCountryRegionCurrency boCountryRegionCurrency = new BOCountryRegionCurrency();

            boCountryRegionCurrency.SetProperties(
                countryRegionCode,
                model.CurrencyCode,
                model.ModifiedDate);
            return(boCountryRegionCurrency);
        }