Create a Web API in MVC 6

In this topic you will learn:
  • How to create a simple web API in ASP.NET MVC 6.
  • How to start from the Empty project template and add components to your app, as you need them.
  • How to configure the ASP.NET 5.0 pipeline.
  • How to self-host the app outside of IIS.
My approach in this tutorial is to start with nothing and build up the app. You can also start with the “Starter Web” template, which configures MVC 6, authentication, logging, and other features for you, and includes example controllers and views. Either approach is valid.
 
Continue here>>