public ActionResult AjaxAddStudent(Student student) { studManager.InsertStudent(student); var model = new StudentGroupsAdd(); model.Students = studManager.GetStudents(); return(Json(model.Students)); }
// GET: Groups public ActionResult Index() { //var students = studManager.GetStudents(); var model = new StudentGroupsAdd(); model.Students = studManager.GetStudents(); model.Groups = groupManager.GetGroups().ToList(); return(View(model)); }