Ejemplo n.º 1
0
 public void SaveData()
 {
     _service.AddOrUpdateStudyYear(_studyYear);
     foreach (var disc in _newDisciplines)
     {
         _service.AddOrUpdateDiscipline(disc);
     }
     foreach (var disYear in _disciplineYears)//долго 8с.
     {
         _service.AddOrUpdateDisciplineYear(disYear);
     }
     foreach (var group in _newGroups)
     {
         _service.AddOrUpdateGroup(group);
     }
     foreach (var workload in _workloads) //6с.
     {
         _service.AddOrUpdateDisciplineWorkload(workload);
     }
     WorkloadAssigmnent();
 }