Exemplo n.º 1
0
 public ActionResult InlineEditingDeletePostPartial(int postID)
 {
     try {
         NewsGroupsProvider.DeletePost(postID);
     }
     catch (Exception e) {
         ViewData["EditNodeError"] = e.Message;
     }
     return(PartialView("InlineEditingPartial", NewsGroupsProvider.GetEditablePosts()));
 }
Exemplo n.º 2
0
 public ActionResult InlineEditingUpdatePostPartial(EditablePost post)
 {
     if (ModelState.IsValid)
     {
         try {
             NewsGroupsProvider.UpdatePost(post);
         }
         catch (Exception e) {
             ViewData["EditNodeError"] = e.Message;
         }
     }
     else
     {
         ViewData["EditNodeError"] = "Please, correct all errors.";
     }
     return(PartialView("InlineEditingPartial", NewsGroupsProvider.GetEditablePosts()));
 }
Exemplo n.º 3
0
 public ActionResult InlineEditing()
 {
     return(DemoView("InlineEditing", NewsGroupsProvider.GetEditablePosts()));
 }
Exemplo n.º 4
0
 public ActionResult InlineEditingMovePostPartial(int postID, int?parentID)
 {
     NewsGroupsProvider.MovePost(postID, parentID);
     return(PartialView("InlineEditingPartial", NewsGroupsProvider.GetEditablePosts()));
 }
Exemplo n.º 5
0
 public ActionResult InlineEditingPartial()
 {
     return(PartialView("InlineEditingPartial", NewsGroupsProvider.GetEditablePosts()));
 }