public ActionResult DeleteComment(int id, int newsPostId, bool detailsMode = true)
        {
            CommentHelper.DeleteComment(id, newsPostId);
            string action = detailsMode ? "Details" : "Preview";

            return(RedirectToAction(action, new { id = newsPostId }));
        }
Ejemplo n.º 2
0
 public ActionResult DeleteComment(int id, int postId)
 {
     CommentHelper.DeleteComment(id, postId);
     return(RedirectToAction("Comments", new { id = postId }));
 }
Ejemplo n.º 3
0
 public ActionResult DeleteComment(int?id, int?idProduct)
 {
     CommentHelper.DeleteComment((int)id);
     return(Redirect("/Product/Detail/" + idProduct.ToString() + "#newComment"));
 }