//------------------------------------------------------------------------------------------------------------------------------------------

        private async Task FillingDropDownLists()
        {
            ViewBag.MainSubdivision = await _dropDownList.GetMainSubdivision();

            ViewBag.Position = await _dropDownList.GetPosition();

            ViewBag.Privilegies = await _dropDownList.GetPrivilegies();

            ViewBag.Hobby = await _dropDownList.GetHobby();

            ViewBag.Dormitory = await _dropDownList.GetDormitory();

            ViewBag.Departmental = await _dropDownList.GetDepartmental();

            ViewBag.Accommodation = new Dictionary <string, string>
            {
                { "dormitory", "Гуртожиток" },
                { "departmental", "Вiдомче житло" },
                { "from-university", "Житло надане унiверситетом" }
            };

            ViewBag.TypeBirthDate = new Dictionary <string, string>
            {
                { "employeeBirthDate", "Член профспілки" },
                { "childrenBirthDate", "Дiти" },
                { "grandChildrenBirthDate", "Онуки" }
            };

            ViewBag.TypeHobby = new Dictionary <string, string>
            {
                { "employeeHobby", "Член профспілки" },
                { "childrenHobby", "Дiти" },
                { "grandChildrenHobby", "Онуки" }
            };
        }
Beispiel #2
0
        //------------------------------------------------------------------------------------------------------------------------------------------

        private async Task FillingDropDownLists()
        {
            ViewBag.LevelEducation = await _dropDownList.GetLevelEducation();

            ViewBag.Study = await _dropDownList.GetStudy();

            ViewBag.MainSubdivision = await _dropDownList.GetMainSubdivision();

            ViewBag.Position = await _dropDownList.GetPosition();

            ViewBag.Dormitory = await _dropDownList.GetDormitory();

            ViewBag.Departmental = await _dropDownList.GetDepartmental();

            ViewBag.AcademicDegree = await _dropDownList.GetAcademicDegree();

            ViewBag.ScientificTitle = await _dropDownList.GetScientificTitle();

            ViewBag.SocialActivity = await _dropDownList.GetSocialActivity();

            ViewBag.Privilegies = await _dropDownList.GetPrivilegies();
        }