public ActionResult InlineEditingWithTemplateMovePostPartial(int postID, int?parentID, bool hierarchy)
        {
            if (hierarchy)
            {
                NewsGroupsProvider.MovePost(postID, parentID);
            }
            else
            {
                NewsGroupsProvider.ReOrderPost(postID, parentID);
            }

            return(InlineEditingWithTemplatePartial());
        }
 public ActionResult InlineEditingWithTemplateUpdatePostPartial(EditablePost post)
 {
     if (ModelState.IsValid)
     {
         NewsGroupsProvider.UpdatePost(post);
         if (post.ParentID != null)
         {
             NewsGroupsProvider.MovePost(post.PostID, post.ParentID);
         }
     }
     else
     {
         ViewData["EditNodeError"] = "Please, correct all errors.";
     }
     return(InlineEditingWithTemplatePartial());
 }