public JsonResult DeleteComment(int id) { Comment comment = dataItemService.GetComment(id); if (comment != null) { dataItemService.DeleteComment(comment); dataItemService.SaveDataItem(); } return(Json(new { status = HttpStatusCode.OK })); }
public JsonResult DeleteComment(int id) { Comment comment = dataItemService.GetComment(id); if (comment != null) { dataItemService.DeleteComment(comment); dataItemService.SaveDataItem(); } return(Json(new { status = HttpStatusCode.OK })); }