public bool AcceptAjaxOrder(OrderID Ord_ID)
        {
            Debug.WriteLine(" Ord_ID => " + Ord_ID.id);
            if (Ord_ID != null)
            {
                int result = db.Database.ExecuteSqlCommand("Update  [dbo].[Order] SET StatusId = 2 where ID = @orderid", new SqlParameter("@orderid", Ord_ID.id));
                Debug.WriteLine("Result => " + result);
            }

            return(Ord_ID != null);
        }
        public bool payOrder(OrderID Ord_ID)
        {
            Debug.WriteLine(" Ord_ID => " + Ord_ID.id);
            if (Ord_ID != null)
            {
                int result = db.Database.ExecuteSqlCommand("Update  [dbo].[Order] SET Paid = 2 where ID = @orderid", new SqlParameter("@orderid", Ord_ID.id));
                Debug.WriteLine("Result => " + result);
                Session["OrderPaymentFlag"] = null;
            }

            return(Ord_ID != null);
        }