public JsonResult UpdateSubForumComment(SubjectForumTopicComment Info) { ResultInfo <string> ResultInfo = new ResultInfo <string>() { Status = false, Description = "Failed|Login" }; try { if (Info != null) { SchoolStudent Obj = new SchoolStudent(); ResultInfo.Info = Obj.UpdateCommentByUID(Info); if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Updation Sucess"; ResultInfo.Status = true; } } } catch (Exception ex) { } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }
public JsonResult RefreshComment(long CommentID, long UID) { ResultInfo <SubjectForumTopicComment> ResultInfo = new ResultInfo <SubjectForumTopicComment>() { Status = false, Description = "Failed|Login" }; SchoolStudent PageObj = new SchoolStudent(); SubjectForumTopicComment temp = new SubjectForumTopicComment(); if (CommentID != 0) { temp = PageObj.RefreshCommentByUserID(CommentID, UID); ResultInfo.Info = temp; if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Get Details "; ResultInfo.Status = true; } } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }
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)); }