Task 2: Complete ListController
Jobs() action method in
ListController. Right now, it returns a view, but we need to send some details about jobs to that view.
- The view relies on
ViewBag.jobs, so to start create a list in the action method called
- If the user selects “View All”, you should use
jobswith all the jobs and update
ViewBag.title. If the user selects something specific, you should use
jobswith jobs that only match that criteria and update
ViewBag.titleto include the criteria the user chose.
- Make sure to set
jobsand run the program to see how it is working now!
If everything looks good to you, run the tests in
AutogradingTests to make sure you are on the right track before proceeding to task three.