// GET: Departments public ActionResult Index() { var departments = p_repo.GetDepartments().ToList(); return(View(departments)); }
// GET: Employees/Create public ActionResult Create() { ViewBag.DepartmentId = new SelectList(p_repo.GetDepartments(), "Id", "Name"); return(View()); }