コード例 #1
0
 public void RebuildSectionStudentRelationships(SectionStudentModel model)
 {
     _sectionsRepository.ClearSectionStudents(model.SectionId);
     _sectionsRepository.Save();
     _sectionsRepository.AssignStudents(model.SectionId, model.StudenstIds);
     _sectionsRepository.Save();
 }
コード例 #2
0
 public IHttpActionResult PostReassignStudents(SectionStudentModel model)
 {
     _sectionServices.RebuildSectionStudentRelationships(model);
     return(Ok());
 }
コード例 #3
0
 public IHttpActionResult PostRemoveStudents(SectionStudentModel model)
 {
     _sectionServices.RemoveStudents(model);
     return(Ok());
 }
コード例 #4
0
 public bool RemoveStudents(SectionStudentModel model)
 {
     _sectionsRepository.RemoveStudents(model.SectionId, model.StudenstIds);
     _sectionsRepository.Save();
     return(true);
 }