private List<Order> getOrders()
 {
     List<Order> orderList = new List<Order>();
     foreach (GridViewRow gvr in MainMenuGrid.Rows)
     {
         if (((CheckBox)gvr.FindControl("CheckBox1")).Checked == true)
         {
             Order order = new Order();
             order.Name = nameInputBox.Value;
             order.Address = addressInputBox.Value ;
             order.Email = emailInputBox.Value;
             order.ItemName = gvr.Cells[1].Text;
             orderList.Add(order);
         }
     }
     return orderList;
 }
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 public static Order CreateOrder(global::System.Int32 id)
 {
     Order order = new Order();
     order.id = id;
     return order;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrders(Order order)
 {
     base.AddObject("Orders", order);
 }