public JsonResult DeleteSubForumComment(long UID, long CommID) { ResultInfo <string> ResultInfo = new ResultInfo <string>() { Status = false, Description = "Failed|Login" }; try { if (UID > 0 && CommID > 0) { SchoolStudent PageObj = new SchoolStudent(); ResultInfo.Info = PageObj.DeleteComment(UID, CommID); // ResultInfo.Info = PageObj.UpdateStudygrpCommentstatus(Info); if (ResultInfo.Info != null) { ResultInfo.Description = "Success| deleted"; ResultInfo.Status = true; } } } catch (Exception ex) { ResultInfo.Description = ex.Message; } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }