// 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());
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            List <Department> departments = _buisnessLogicClass.GetAllTheDepartments();

            return(View(departments));
        }