Exercise 2: Creating a Controller
In this exercise, you will learn how to create a Controller to implement simple functionality of the Music Store. That controller will define action methods to handle each specific request:
For the scope of this exercise, you will have those actions to simply return a string by now.
Task 1 – Adding a New StoreController Class
In this task, you will add a new Controller.
Task 2 – Modifying the StoreController’s Actions
In this task, you will modify Controller methods that are called actions. These actions are responsible for responding to URL requests and determine the content that should be sent back to the browser or user that invoked the URL.
Task 3 – Running the Application
In this task, you will try out the Application in a web browser.