예제 #1
0
        public JsonResult SaveCommentReply(Reply objReply)
        {
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: SaveReply - Begin");
            ResponseDTO response = new ResponseDTO();

            try
            {
                if (Session["CurrentUser"] != null)
                {
                    User _currentUser = Session["CurrentUser"] as User;
                    objReply.Reply_Author = _currentUser.FirstName + _currentUser.LastName;

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