Skip to Content
Mastering ASP.NET Web API
book

Mastering ASP.NET Web API

by Mithun Pattankar, Malendra Hurbuns
August 2017
Intermediate to advanced
330 pages
7h 26m
English
Packt Publishing
Content preview from Mastering ASP.NET Web API

Controllers

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:

I have created a new Controller, which gets saved in the Controllers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical ASP.NET Web API

Practical ASP.NET Web API

Badrinarayanan Lakshmiraghavan
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi

Publisher Resources

ISBN: 9781786463951Supplemental Content