public GetAllDespatchOptionsResponse GetAllDespatchOptions()
        {
            GetAllDespatchOptionsResponse response = new GetAllDespatchOptionsResponse();

            response.DeliveryOptions = _deliveryOptionRepository.FindAll().OrderBy(d => d.Cost).ConvertToDeliveryOptionViews();

            return(response);
        }
Пример #2
0
        public ActionResult Detail()
        {
            BasketDetailView basketView = new BasketDetailView();
            Guid             basketId   = base.GetBasketId();

            GetBasketRequest basketRequest = new GetBasketRequest()
            {
                BasketId = basketId
            };
            GetBasketResponse basketResponse = _basketService.GetBasket(basketRequest);

            GetAllDespatchOptionsResponse despatchOptionsResponse = _basketService.GetAllDespatchOptions();

            basketView.Basket          = basketResponse.Basket;
            basketView.Categories      = base.GetCategories();
            basketView.BasketSummary   = base.GetBasketSummaryView();
            basketView.DeliveryOptions = despatchOptionsResponse.DeliveryOptions;

            return(View("View", basketView));
        }