コード例 #1
0
        public ActionResult Index(DeptVm vm)
        {
            DepartmentService deptService = new DepartmentService();

            vm.DeptList = deptService.DeptList;


            vm.SelectEmpList = deptService.GetEmployees(vm.SelectedDeptNo);

            return(View(vm));
        }
コード例 #2
0
        // GET: Department
        public ActionResult Index()
        {
            DepartmentService deptService = new DepartmentService();

            DeptVm vm = new DeptVm();

            vm.SelectEmpList = deptService.EmpList;
            vm.DeptList      = deptService.DeptList;

            return(View(vm));
        }