public JsonResult DeleteComment(int idComment)
 {
     dao.DeleteComment(idComment);
     return(Json(new
     {
         status = true
     }));
 }
예제 #2
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));
        }
예제 #3
0
 /// <summary>
 /// Deletecomment - xoa thông tin comment
 /// </summary>
 /// <param name="comment"></param>
 /// <returns></returns>
 public bool DeleteComment(Comment comment)
 {
     return(commentDao.DeleteComment(comment));
 }
예제 #4
0
 public void DeleteComment(int commentId)
 {
     CommentDao.DeleteComment(commentId);
 }