Beispiel #1
0
        protected async Task UpdateMR()
        {
            ModuleRun result = null;

            if (ModuleRun.ModuleRunId != 0)
            {
                result = await ModuleRunService.UpdateModuleRun(ModuleRun);
            }
            else
            {
                result = await ModuleRunService.CreateModuleRun(ModuleRun);
            }
        }
Beispiel #2
0
        protected async Task HandleValidSubmit()
        {
            PlanDto result = null;

            if (Semester.SemesterId != 0)
            {
                await SemesterService.UpdateSemester(AutumnSemester);

                await SemesterService.UpdateSemester(SpringSemester);

                await LecturerModuleRunService.UpdateLecturerModuleRun(Lmr);

                await ModuleRunService.UpdateModuleRun(MR);
            }

            if (Plan.Id != 0)
            {
                await PlanService.UpdatePlan(Plan);
            }
            else
            {
                result = await PlanService.CreatePlan(Plan);
            }
        }