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

            return(View(departments));
        }