Esempio n. 1
0
        public JsonResult DeleteComment(long commentId)
        {
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: DeleteComment - Begin");
            ResponseDTO response = new ResponseDTO();

            try
            {
                response = dataaccess.DeleteComment(commentId);
            }
            catch (Exception ex)
            {
                logginghelper.Log(LoggingLevels.Error, "Class: " + classname + " ::  DeleteComment" + ex);
            }
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " ::  DeleteComment - End");
            return(Json(response, JsonRequestBehavior.AllowGet));
        }