예제 #1
0
파일: Cart.aspx.cs 프로젝트: darrynten/ABtR
 protected void RemoveButton_Click(object sender, EventArgs e)
 {
     using (ShoppingCartActions actions = new ShoppingCartActions())
     {
         actions.RemoveAll();
         Server.Transfer("Cart.aspx");
     }
 }
예제 #2
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //Remove previous db stuff
            ShoppingCartActions actions = new ShoppingCartActions();

            actions.RemoveAll();
        }