public ActionResult DeleteCommentAction(int id) { CommentDao cmDao = new CommentDao(); Comment cm = cmDao.FindCommentById(id); cmDao.DeleteComment(cm); string url = "/HomePage/Detail/" + _productID.ToString(); return(Redirect(url)); }
public ActionResult DeleteCommentAction(int id) { CommentDao cmDao = new CommentDao(); Comment cm = cmDao.FindCommentById(id); cmDao.DeleteComment(cm); string url = "/HomePage/Detail/" + _productID.ToString(); return(Redirect(url)); }