Пример #1
0
        public RegionBasket DeserializeRegionBasket(RegionBasketModel model)
        {
            var basket = DeserializeBasket(model.Id);
            var result = basket.AsRegionBasket();

            return(result);
        }
Пример #2
0
        public RegionBasketModel SerializeRegionBasket(Core.ManagingBaskets.RegionBasket model)
        {
            var result = new RegionBasketModel(
                model.Id,
                model.Name,
                this.SerializeCountries(model.Countries)
                );

            return(result);
        }