Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            GetAllCookies();

            //check for querystrings
            if (Request.QueryString.Count > 0)
            {
                //try and get the cookieid
                Guid cookieId = Guid.Empty;
                if (Guid.TryParse(Request.QueryString["CookieId"], out cookieId))
                {
                    //add the cookie to the order
                    _orderService.AddCookieToOrder(cookieId.ToString());
                    Response.Redirect("Orders.aspx");
                }
            }
        }