// GET: ProductController/Create public ActionResult Create() { //Query the List of Departments available to the product... List <Department> departments = _buisnessLogicClass.GetAllTheDepartments(); ViewBag.Departments = departments; return(View()); }
public ActionResult Index() { List <Department> departments = _buisnessLogicClass.GetAllTheDepartments(); return(View(departments)); }