Example #1
0
        public JsonResult DeleteComment(int id)
        {
            Comment comment = dataItemService.GetComment(id);

            if (comment != null)
            {
                dataItemService.DeleteComment(comment);
                dataItemService.SaveDataItem();
            }
            return(Json(new { status = HttpStatusCode.OK }));
        }