Exemple #1
0
        public JsonResult DeleteComment(string CommentID)
        {
            bool status = false;
            var  ID     = Convert.ToInt32(CommentID);
            var  res    = dao.DeleteComment(ID);

            if (res == "")
            {
                status = true;
            }
            else
            {
                status = false;
            }

            return(Json(new
            {
                Stauts = status
            }));
        }