public IEnumerable<BasketItemModel> GetProductListByBasketID(int basketID)
        {
            UserOrderController userOrderController = new UserOrderController();
            OrderStatusController orderStatusController = new OrderStatusController();
            OrderStateController orderStateController = new OrderStateController();
            ProductController productController = new ProductController();

            List<BasketItemModel> basketDetails = new List<BasketItemModel>();

            foreach (UserOrder userOrder in userOrderController.GetAllUserOrders())
            {
                if (basketID == userOrder.OrderBasketID)
                {
                    basketDetails.Add(new BasketItemModel()
                    {
                        BasketID = userOrder.OrderBasketID,
                        CurierPassingDate = orderStatusController.GetById(userOrder.OrderStatusID).CourierPassingDate,
                        DeliveryDate = orderStatusController.GetById(userOrder.OrderStatusID).DeliveryDate,
                        OrderState = orderStateController.GetById(orderStatusController.GetById(userOrder.OrderStatusID).OrderStateID).Name,
                        OrderStatusID = orderStatusController.GetById(userOrder.OrderStatusID).ID,
                        ProductName = productController.GetById(userOrder.ProductID).Name,
                        ProductPrice = productController.GetById(userOrder.ProductID).Price,
                        OrderID = userOrder.ID
                    });
                }
            }

            return basketDetails;
        }
        protected void btnSaveChanges_Click(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(Session["orderStatusID"]);

            DateTime? curierDate = Convert.ToDateTime(this.tbCurierDate.Text); 
            DateTime? deliveryDate = Convert.ToDateTime(this.tbDeliveryDate.Text); 

            string state = ddlOrderState.SelectedItem.Text;
            OrderStateController orderStateController = new OrderStateController();
            int stateId = orderStateController.GetIdByName(state);

            if (id != null && id != 0)
            {
                orderStatusController.ModifyOrderStatus(id, curierDate, deliveryDate, stateId);
            }

            Session["orderStatusID"] = 0;
        }