public ActionResult Delete() { int id = Convert.ToInt32(Request.QueryString["productid"]); string name = Request.QueryString["name"].ToString(); FakeDatabaseOperation.DeleteProduct(id); return(Redirect("/Product/Index")); }
public ActionResult Delete_Path2(int productid, string name) { FakeDatabaseOperation.DeleteProduct(productid); return(Redirect("/Product/Index")); }