I fired up VS 2017 community edition and created a new web project. Note that you get to choose which template you want to target. I have selected ASP.NET Core Web Application. Create a new project called Puhoi, which is a small town in New Zealand, which makes some diary products. I aim to create a controller for some of their products. It's good to create an example that is tangible and is a real work example. I tend to stay away from something like a book's controller or product's controller.
After creating the project, you will be prompted with a template to choose; select the template highlighted in the following screenshot by selecting ASP.NET Core 2.0:
![](https://static.packt-cdn.com/products/9781786463951/graphics/assets/3f0c42b7-47c5-4ed6-93fb-d0ee5478ec3f.png)
I have created a new Controller, which gets saved in the Controllers folder:
![](https://static.packt-cdn.com/products/9781786463951/graphics/assets/9ad89cb7-ba62-4b8f-acf6-bff8ad402c5a.png)
Also, note the route for the controller; it does not contain the name of the controller:
![](https://static.packt-cdn.com/products/9781786463951/graphics/assets/04d330d7-8e34-48e3-ae27-23842b8a7020.png)
Let's talk about what...