public ActionResult Edit(int id) { var employeetoEdit = employeeProvider.EditEmployee(id); var departments = employeeProvider.GetDepartments(); TempData["Departments"] = departments; return(View("Edit", employeetoEdit)); }
public ActionResult Edit(int id) { var employeetoEdit = employeeProvider.EditEmployee(id); var departments = employeeProvider.GetDepartments(); TempData["Departments"] = departments; return(View("Edit", employeetoEdit)); }