Is this even possible?
Code looks like this ...
[Transaction]
[ValidateAntiForgeryToken]
[HttpDelete]
public ActionResult Delete(int id) { ...}
Is this even possible?
Code looks like this ...
[Transaction]
[ValidateAntiForgeryToken]
[HttpDelete]
public ActionResult Delete(int id) { ...}
You could add the following helper to the form:
<%= Html.HttpMethodOverride(HttpVerbs.Delete) %>
This will include a hidden field which will instruct the framework to invoke the proper controller action. Now there are two possibilities: