Example #1
0
        public ActionResult AddNewEmployee()
        {
            AdminProfileViewModel adminProfileViewModel = new AdminProfileViewModel();

            var gender = genderService.GetAllGender();

            adminProfileViewModel.GenderList = genderService.GetSelectListItemsGender(gender);

            var qualification = qualificationService.GetAllQualification();

            adminProfileViewModel.QualificationList = qualificationService.GetSelectListItemQualification(qualification);

            var designation = designationService.GetAllDesignation();

            adminProfileViewModel.DesignationList = designationService.GetSelectListItemDesignation(designation);

            var department = departmentService.GetAllDepartment();

            adminProfileViewModel.DepartmentList = departmentService.GetSelectListItemsDepartment(department);

            return(View(adminProfileViewModel));
        }