Exemple #1
0
 public ActionResult Index(DisplayEmpViewModel deDisplayEmpViewModel)
 {
     _servies.CreateEmployeeList();
     ViewBag.departments = _servies.CreateDeptList();
     _displayEmpViewModel.EmployeList = _servies.GetDeptWisEmployees(deDisplayEmpViewModel.DepaTNO);
     _displayEmpViewModel.DeptList    = ViewBag.departments;
     return(View(_displayEmpViewModel));
 }
 public ActionResult Index(Department i)
 {
     _indexViewModel.EmployeList = _servies.GetDeptWisEmployees(i.DeptNo);
     _indexViewModel.DeptList    = _servies.DepartmentsList;
     return(View(_indexViewModel));
 }