Ejemplo n.º 1
0
 public IActionResult DepartmentofSubDepartment(int departmentId)
 {
     ViewModels.DepartmentViewModel viewModel = new ViewModels.DepartmentViewModel();
     viewModel.SubDepartments  = (IEnumerable <SubDepartment>)_DepartmentData.GetSubDepartmentByDepartmentId(departmentId);
     viewModel.DepartmentOfSub = _DepartmentData.GetDepartmentById(departmentId);
     return(View(viewModel));
 }