예제 #1
0
        public JsonResult InsertCommentByTopicID(SubjectForumTopicComment Info)
        {
            //List<SubjectForumTopicComment> CommentInfo = new List<SubjectForumTopicComment>();
            ResultInfo <string> ResultInfo = new ResultInfo <string>()
            {
                Status      = false,
                Description = "Failed|Login"
            };

            try
            {
                if (Info != null)
                {
                    SchoolStudent PageObj = new SchoolStudent();
                    ResultInfo.Info = PageObj.InsertCommentByTopicID(Info);
                    if (ResultInfo.Info != null)
                    {
                        ResultInfo.Description = "Success| Insert comment";
                        ResultInfo.Status      = true;
                    }
                }
            }
            catch (Exception ex)
            {
                ResultInfo.Description = ex.Message;
            }
            return(Json(ResultInfo, JsonRequestBehavior.AllowGet));
        }