コード例 #1
0
        public ActionResult Edit(int Id)
        {
            EmployeeBusinessLayer employeeBusinessLayer = new EmployeeBusinessLayer();
            Employee employee = employeeBusinessLayer.Employees().Single(emp => emp.EmployeeId == Id);

            return View(employee);
        }
コード例 #2
0
        public ActionResult Prueba()
        {
            EmployeeBusinessLayer employeeBusinessLayer = new EmployeeBusinessLayer();

            List<Employee> employees = employeeBusinessLayer.Employees().ToList();

            return View(employees);
        }