In this tutorial, you are going to create an ASP.NET MVC application that is going to have an Ajax-based link to asynchronously load records from the server. You are going to simulate a slow server so that you can make a GIF-animated spinner appear while the async Ajax call is waiting for the records to return.
In this tutorial, you are going to learn how to use a custom type to wrap the properties that you want to pass back and forth between the client and the Web API service. You will also use a custom formatter to determine how the serialization of the objects should happen.
If you have been following the steps of the other Web API tutorials, you noticed that most of them take advantage of the Web API project template to start up the project. In this tutorial, you will learn how to create a Web API project from scratch. This will help you consolidate your knowledge about the ASP.NET Web API. You will also learn how to use the [Route] attribute to override the routing configuration to access an action method.
In this tutorial, we will learn how to develop our first ASP.NET 5 Web Application project using the Visual Studio 2015 IDE. We will also learn how to use the project.json file to download and install our project’s dependencies. We will learn how to implement the Startup class to use the ConfigureServices and Configure methods to allow static file requests and handle MVC requests.