// GET: DepartmentEmployee
        public ActionResult Index()
        {
            DepartmentController         departmentController = new DepartmentController();
            EmployeeController           empController        = new EmployeeController();
            DropDownDepartmentController ddController         = new DropDownDepartmentController();
            DepartmentEmployee           DEview = new DepartmentEmployee();

            DEview.DEDepartmentList   = departmentController.GetDepartments();
            DEview.DEEmployeeList     = empController.GetEmployees();
            DEview.DepartmentListView = ddController.GetDropdownDepartments();
            return(View(DEview));
        }
Esempio n. 2
0
        public IEnumerable <SelectListItem> GetDepartment()
        {
            DropDownDepartmentController dp = new DropDownDepartmentController();

            return(dp.GetDropdownDepartments());
        }