public int SubmitOrder(Cart cart, DeliveryDetails deliveryDetails, int CustID, String CustEmail)
        {
            // Need to pass the CustomerID in here!!!
            int orderKey = orderRepository.CreateOrder(CustID);

            deliveryDetails.FKOrderID = orderKey;
            int deliveryKey = deliveryRepository.CreateDelivery(deliveryDetails);

            orderItemRepository.CreateOrderList(orderKey, cart);

            using (var smtpClient = new SmtpClient())
                using (var mailMessage = BuildMailMessage(cart, deliveryDetails, CustEmail, orderKey))
                {
                    smtpClient.Send(mailMessage);
                }
            return(orderKey);
        }