private OrderingSummaryEditViewModel LoadOrderingSummaryEditViewModel()
        {
            var headerContent = _headerContent.GetAll().Single();

            var vm = new OrderingSummaryEditViewModel
            {
                Summary = headerContent.Summary,
                Pricing = headerContent.Pricing,
                PaymentOptions = headerContent.PaymentOptions,
                PaymentPolicy = headerContent.PaymentPolicy,
                Shipping = headerContent.Shipping
            };

            return vm;
        }
        private void UpdateOrderingHeaderContent(OrderingSummaryEditViewModel viewModel)
        {
            var headerContent = _headerContent.GetAll().Single();

            headerContent.Summary = viewModel.Summary;
            headerContent.Pricing = viewModel.Pricing;
            headerContent.PaymentOptions = viewModel.PaymentOptions;
            headerContent.PaymentPolicy = viewModel.PaymentPolicy;
            headerContent.Shipping = viewModel.Shipping;

            _headerContent.Update(headerContent);
        }
        public ActionResult EditHeader(OrderingSummaryEditViewModel viewModel)
        {
            UpdateOrderingHeaderContent(viewModel);

            return RedirectToAction("Index");
        }