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