public override ActionResult Index(UpcomingDeliveriesBlock currentBlock)
        {
            var viewModel = new UpcomingDeliveriesBlockViewModel
            {
                LastUpdated = $"{DateTime.Now:yyyy-MM-dd} 05:00"
            };
            var activeCustomer = _userManger.GetActiveCustomer(HttpContext);
            var customerId     = activeCustomer?.CustomerId ?? 0;

#if DEBUG
            customerId = 16;
#endif
            if (customerId <= 0 || currentBlock.MaximumOfDeliveyItems <= 0)
            {
                return(PartialView("Index", viewModel));
            }

            var deliveryInformation = _userMessageRepository.GetDeliverySummary(customerId,
                                                                                currentBlock.MaximumOfDeliveyItems);

            if (deliveryInformation == null)
            {
                return(PartialView("Index", viewModel));
            }

            var deliveriesToCustomer   = ReOrderDeliveries(deliveryInformation.ToCustomer);
            var deliveriesFromCustomer = ReOrderDeliveries(deliveryInformation.FromCustomer);
            var lastUpdated            = deliveryInformation.LastUpdated.Year > 1 ? deliveryInformation.LastUpdated : DateTime.Now;

            viewModel.LastUpdated            = $"{lastUpdated:yyyy-MM-dd} 05:00";
            viewModel.DeliveriesToCustomer   = PopulateDeliveryCards(deliveriesToCustomer);
            viewModel.DeliveriesFromCustomer = PopulateDeliveryCards(deliveriesFromCustomer);
            viewModel.DeliveryPlanPage       = GetPLannedDeliveryPage();
            return(PartialView("Index", viewModel));
        }