Exemple #1
0
 //[HttpPut]
 public JsonResult Update(Post post)
 {
     Session.Store(post);
     return Json("Post updated successfully");
 }
Exemple #2
0
 //[HttpGet]
 public JsonResult Edit(Post post)
 {
     return Json("Edit");
 }
Exemple #3
0
 //[HttpGet]
 public JsonResult New(Post post)
 {
     return Json("New");
 }
Exemple #4
0
 //[HttpDelete]
 public JsonResult Destroy(Post post)
 {
     Session.Delete(post);
     return Json("Post deleted successfully");
 }