Пример #1
0
        public CountryBasket DeserializeCountryBasket(CountryBasketModel model)
        {
            var basket = DeserializeBasket(model.Id);
            var result = basket.AsCountryBasket();

            return(result);
        }
Пример #2
0
        public CountryBasketModel SerializeCountryBasket(Core.ManagingBaskets.CountryBasket model)
        {
            var result = new CountryBasketModel(
                model.Id,
                this.SerializeCountry(model.Country)
                );

            return(result);
        }