How to RESTful delete record Asp.Net Mvc 2

Posted by Picflight on Stack Overflow See other posts from Stack Overflow or by Picflight
Published on 2010-05-22T21:12:15Z Indexed on 2010/05/22 21:20 UTC
Read the original article Hit count: 253

Filed under:
|

I have delete links in my Asp.Net Mvc2 application.
/{controller}/Delete/{id}

It seems using link to delete has a security risk. Don’t use Delete Links because they create Security Holes

I found this Implementing RESTful Routes & Controllers in ASP.NET MVC 2.0 but I am not sure how to implement a simple delete functionality using the new HttpDeleteAttribute class.

Are there any examples on deleting, the RESTful approach?

© Stack Overflow or respective owner

Related posts about rest

Related posts about asp.net-mvc-2