Ejemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            var employeetoEdit = employeeProvider.EditEmployee(id);

            var departments = employeeProvider.GetDepartments();

            TempData["Departments"] = departments;

            return(View("Edit", employeetoEdit));
        }