public JsonResult GetAssignmentList(long Topic_ID) { ResultInfo <List <ClassTeacherAssignmentDetails> > ResultInfo = new ResultInfo <List <ClassTeacherAssignmentDetails> >() { Status = false, Description = "Failed|Login" }; List <ClassTeacherAssignmentDetails> nm = new List <ClassTeacherAssignmentDetails>(); SchoolStudent PageObj = new SchoolStudent(); if (Topic_ID > 0) { // nm = PageObj.GetTopicsForAssignment(SubjectID); nm = PageObj.Assignments(Topic_ID); ResultInfo.Info = nm; } if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Get level name with id"; ResultInfo.Status = true; } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }