public ActionResult Edit(int Id) { EmployeeBusinessLayer employeeBusinessLayer = new EmployeeBusinessLayer(); Employee employee = employeeBusinessLayer.Employees().Single(emp => emp.EmployeeId == Id); return View(employee); }
public ActionResult Prueba() { EmployeeBusinessLayer employeeBusinessLayer = new EmployeeBusinessLayer(); List<Employee> employees = employeeBusinessLayer.Employees().ToList(); return View(employees); }