public async Task <IActionResult> EduPlanCreateOrEdit(EduPlan eduPlan,
                                                              int EduProgramId,
                                                              IFormFile uploadedFile,
                                                              int[] EduVidDeyatIds,
                                                              int[] EduYearBeginningTrainingIds,
                                                              int[] EduPlanEduYearIds)
        {
            if (ModelState.IsValid)
            {
                EduPlan eduPlanRepositoryEntry = await _metodKomissiyaRepository
                                                 .CreateEduPlanByUserNameAsync(EduProgramId,
                                                                               eduPlan, uploadedFile, EduVidDeyatIds,
                                                                               EduYearBeginningTrainingIds, EduPlanEduYearIds,
                                                                               User.Identity.Name);

                return(RedirectToAction(nameof(EduPrograms)));
            }

            var eduProgram = await _metodKomissiyaRepository.GetEduProgramByUserNameAsync(EduProgramId, User.Identity.Name);

            if (eduProgram == null)
            {
                return(NotFound());
            }

            ViewData["EduFormId"]        = _selectListRepository.GetSelectListEduForms();
            ViewData["EduProfileId"]     = eduProgram.EduProfileId;
            ViewData["EduProgramPodgId"] = eduProgram.EduProgramPodgId;
            ViewData["EduSrokId"]        = _selectListRepository.GetSelectListEduSrok();
            ViewData["StructKafId"]      = _selectListRepository.GetSelectListStructKaf();

            List <EduVidDeyat> eduVidDeyats = _context.EduVidDeyat.ToList();

            ViewData["EduVidDeyats"] = eduVidDeyats;

            List <EduYearBeginningTraining> eduYearBeginningTrainings = _context.EduYearBeginningTrainings.ToList();

            ViewData["EduYearBeginningTrainings"] = eduYearBeginningTrainings;

            List <EduYear> eduYears = _context.EduYears.ToList();

            ViewData["EduYears"] = eduYears;

            return(View(eduPlan));
        }