コード例 #1
0
        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));
        }