public JsonResult DeleteComment(int idComment)
 {
     dao.DeleteComment(idComment);
     return(Json(new
     {
         status = true
     }));
 }
Exemple #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));
        }
Exemple #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));
 }
Exemple #4
0
 public void DeleteComment(int commentId)
 {
     CommentDao.DeleteComment(commentId);
 }