예제 #1
0
        public ActionResult Delete()
        {
            int    id   = Convert.ToInt32(Request.QueryString["productid"]);
            string name = Request.QueryString["name"].ToString();

            FakeDatabaseOperation.DeleteProduct(id);

            return(Redirect("/Product/Index"));
        }
예제 #2
0
        public ActionResult Delete_Path2(int productid, string name)
        {
            FakeDatabaseOperation.DeleteProduct(productid);

            return(Redirect("/Product/Index"));
        }