public ActionResult UpdateStudentsInClass(string classId, List<string> addedStudentIds, List<string> removedStudentIds) { try { ClassService classService = new ClassService((SiteUser)Session["SiteUser"], new dbTIREntities()); return Json(classService.UpdateStudents(Convert.ToInt32(classId), addedStudentIds, removedStudentIds)); } catch (Exception ex) { Logging log = new Logging(); log.LogException(ex); return View("GeneralError"); } }