You will add the
RavenBaseController class to the
World application to handle and manage a RavenDB session for the
World application. Then you will add the
CountryController class to handle incoming requests for the
Worldproject, right-click on the
Controllersfolder, add a new class, and name it
RavenBaseController. Then complete it with the following code:
In ASP.NET MVC applications, all the Controller classes must be named by using the Controller suffix.
Controllersfolder, add a new Controller, and name it
CountryController. While ...