In regards to Stephan Walter's site...
MVC application
What about using using the [ChildActionOnly]
attribute with some authentication in the ActionResult
to protect against accidental deletes? What if you are using jQuery GET callbacks with an ActionResult
that renders a PartialView
as he suggests that REST purists would defend the idea that GET requests should not change the state of your application? like:
//delete comment and make ajax callback
function del(aid, cid) {
$.ajax("/Article/DelCom?AId=" + aid + "&" + "CId=" + cid, function (result) {
$('#comments-partial').html(result);
});
Or is this only applicable for links?