Exemplo n.º 1
0
 public ActionResult Edit(int employeeId)
 {
     EmployeeViewModel viewModel = new EmployeeViewModel()
     {
         Employee = EmployeeDB.GetInstance().FindEmployee(employeeId),
         EmployeeTypes = EmployeeTypeDB.GetInstance().GetEmployeeTypes()
     };
     return View(viewModel);
 }
Exemplo n.º 2
0
 public ActionResult Create()
 {
     EmployeeViewModel viewModel = new EmployeeViewModel()
     {
         EmployeeTypes = EmployeeTypeDB.GetInstance().GetEmployeeTypes(),
         EmployeeStatuses = EmployeeStatusDB.GetInstance().GetEmployeeStatuses()
     };
     return View(viewModel);
 }