public ActionResult _GrpSelectNewStudents(int orgId) { ViewBag.orgId = orgId; var newStudents = NewStudentListOps._GetOrgUnassignedNewStudents(orgId); return(View(new GridModel(newStudents))); }
public JsonResult GrpSelectNewStudents(int orgId) { var currVol = GetCurrentVolunteer(); var newStudents = NewStudentListOps._GetOrgUnassignedNewStudents(orgId); ViewBag.orgId = orgId; ViewBag.grpId = currVol.GroupId; return(Json(new { Success = true, PartialViewHtml = RenderPartialViewToString("_GrpSelectNewStudents", newStudents), }, JsonRequestBehavior.AllowGet)); }
public ActionResult _OrgNewStudentList(int orgId, int?grpId) { List <NewStudentViewModel> newStudents; if (grpId == null) { newStudents = NewStudentListOps._GetNewStudentFromOrg(orgId); } else if (grpId == -1) { newStudents = NewStudentListOps._GetOrgUnassignedNewStudents(orgId); } else if (grpId > 0) { newStudents = NewStudentListOps._GetNewStudentFromGrp(grpId.Value); } else { newStudents = NewStudentListOps._GetNewStudentFromOrg(orgId); } return(View(new GridModel(newStudents))); }