public ActionResult DeleteCommentAddEdit(PostCommentModel model) {
ModelState.Clear();
var model2 = PostComment.GetContentCommentByID(model.Comment.ContentCommentID);
model2.Delete();
if (model.ViewMode == PostCommentModel.ViewType.PageView) {
if (model.Comment.ContentType == ContentPageType.PageType.BlogEntry) {
return RedirectToAction("BlogPostCommentIndex", new { @id = model.Root_ContentID });
} else {
return RedirectToAction("PageCommentIndex", new { @id = model.Root_ContentID });
}
}
if (model.Comment.ContentType == ContentPageType.PageType.BlogEntry) {
return RedirectToAction("BlogPostCommentIndex");
} else {
return RedirectToAction("PageCommentIndex");
}
}