12.1: Star Setup
Install Microsoft.AspNet.WebApi
Right click on the solution and go to Manage NuGet Packages.
Click on Browse and type Microsoft.AspNet.WebApi.
Select the Microsoft.AspNet.WebApi (not Core), check the Project box,and click Install.
Click Ok and I Accept on the windows that come up.
Close the Package Manager.
Add WebApiConfig.cs
WebApiConfig.cs
Go to ElevenNote.Web -> App_Start
Right click and Add -> Class
Name it
WebApiConfig.cs
Add this code:
CTRL .
to bring in the using statements
Global.asax.cs
Global.asax.cs
Go to ElevenNote.Web -> Global.asax -> Global.asax.cs
On line 17, add
WebApiConfig.Register();
Next, we'll add an API just for the star functionality.
Last updated