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