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 })); }
public ActionResult DeleteComment(int id, int postId) { CommentHelper.DeleteComment(id, postId); return(RedirectToAction("Comments", new { id = postId })); }
public ActionResult DeleteComment(int?id, int?idProduct) { CommentHelper.DeleteComment((int)id); return(Redirect("/Product/Detail/" + idProduct.ToString() + "#newComment")); }