// GET: Jobs/Create public ActionResult Create() { //When creating, select only departments that user manages ViewBag.Departments = db.GetManagedDepartmentsByUserName(User.Identity.Name).Select(d => new SelectListItem() { Text = d.Name, Value = d.ID.ToString() }); return(View()); }