public ActionResult CreateLoad()
        {
            IEnumerable <EmployeeDTO> employeeDTOs = employeeService.GetEmployees();
            var        mapper        = new MapperConfiguration(cfg => cfg.CreateMap <EmployeeDTO, EmployeeViewModel>()).CreateMapper();
            var        employees     = mapper.Map <IEnumerable <EmployeeDTO>, List <EmployeeViewModel> >(employeeDTOs);
            SelectList employeesList = new SelectList(employees, "Id", "LastName");

            ViewBag.Employees = employeesList;

            IEnumerable <DisciplineDTO> disciplineDTOs = disciplineService.GetDisciplines();

            mapper = new MapperConfiguration(cfg => cfg.CreateMap <DisciplineDTO, DisciplineViewModel>()).CreateMapper();
            var        disciplines     = mapper.Map <IEnumerable <DisciplineDTO>, List <DisciplineViewModel> >(disciplineDTOs);
            SelectList disciplinesList = new SelectList(disciplines, "Id", "Name");

            ViewBag.Disciplines = disciplinesList;

            IEnumerable <ContentOfThePlanDTO> contentOfThePlanDTOs = contentOfThePlanService.GetContentOfThePlans();

            mapper = new MapperConfiguration(cfg => cfg.CreateMap <ContentOfThePlanDTO, ContentOfThePlanViewModel>()).CreateMapper();
            var        contentOfThePlans     = mapper.Map <IEnumerable <ContentOfThePlanDTO>, List <ContentOfThePlanViewModel> >(contentOfThePlanDTOs);
            SelectList contentOfThePlansList = new SelectList(contentOfThePlans, "Id", "Id");

            ViewBag.ContentOfThePlans = contentOfThePlansList;

            IEnumerable <SubgroupDTO> subgroupDTOs = subgroupService.GetSubgroups();

            mapper = new MapperConfiguration(cfg => cfg.CreateMap <SubgroupDTO, SubgroupViewModel>()).CreateMapper();
            var        subgroups     = mapper.Map <IEnumerable <SubgroupDTO>, List <SubgroupViewModel> >(subgroupDTOs);
            SelectList subgroupsList = new SelectList(subgroups, "Id", "GroupNumber");

            ViewBag.Subgroups = subgroupsList;

            return(View());
        }
        public ActionResult CreateLoad()
        {
            IEnumerable <EmployeeDTO> employeeDTOs = employeeService.GetEmployees();
            var        mapper        = new MapperConfiguration(cfg => cfg.CreateMap <EmployeeDTO, EmployeeViewModel>()).CreateMapper();
            var        employees     = mapper.Map <IEnumerable <EmployeeDTO>, List <EmployeeViewModel> >(employeeDTOs);
            SelectList employeesList = new SelectList(employees, "Id", "LastName");

            ViewBag.Employees = employeesList;

            //IEnumerable<DisciplineDTO> disciplineDTOs = disciplineService.GetDisciplines();
            //mapper = new MapperConfiguration(cfg => cfg.CreateMap<DisciplineDTO, DisciplineViewModel>()).CreateMapper();
            //var disciplines = mapper.Map<IEnumerable<DisciplineDTO>, List<DisciplineViewModel>>(disciplineDTOs);
            //SelectList disciplinesList = new SelectList(disciplines, "Id", "Name");
            //ViewBag.Disciplines = disciplinesList;

            IEnumerable <ContentOfThePlanDTO> contentOfThePlanDTOs = contentOfThePlanService.GetContentOfThePlans();

            mapper = new MapperConfiguration(cfg => cfg.CreateMap <ContentOfThePlanDTO, ContentOfThePlanViewModel>()).CreateMapper();
            var        contentOfThePlans     = mapper.Map <IEnumerable <ContentOfThePlanDTO>, List <ContentOfThePlanViewModel> >(contentOfThePlanDTOs);
            SelectList contentOfThePlansList = new SelectList(contentOfThePlans, "Id", "Id");

            ViewBag.ContentOfThePlans = contentOfThePlansList;

            IEnumerable <LectureFlowDTO> lectureFlowDTOs = lectureFlowService.GetLectureFlows();

            mapper = new MapperConfiguration(cfg => cfg.CreateMap <LectureFlowDTO, LectureFlowViewModel>()).CreateMapper();
            var        subgroups       = mapper.Map <IEnumerable <LectureFlowDTO>, List <LectureFlowViewModel> >(lectureFlowDTOs);
            SelectList lectureFlowList = new SelectList(subgroups, "Id", "Title");

            ViewBag.LectureFlows = lectureFlowList;

            return(View());
        }
        // GET: ContentOfThePlan
        public ActionResult Index()
        {
            IEnumerable <ContentOfThePlanDTO> contentOfThePlanDTOs = contentOfThePlanService.GetContentOfThePlans();
            var mapper = new MapperConfiguration(cfg => cfg.CreateMap <ContentOfThePlanDTO, ContentOfThePlanViewModel>())
                         .CreateMapper();

            var contentOfThePlans = mapper.Map <IEnumerable <ContentOfThePlanDTO>, List <ContentOfThePlanViewModel> >(contentOfThePlanDTOs);

            return(View(contentOfThePlans));
        }