ASP.NET you're doing it wrong. Part Two: The Views

ASP.NET you're doing it wrong. Part Two: The Views

In my previous post I spoke briefly about how to setup routes and handle route arguments etc. In this post I'm going to run through the various options you have for returning and presenting your data in views. If you haven't already I suggest you read the first part of this series. Returning views and the Convention Just as a refresher, a simple get method that returns a string, is defined as follows: Get["/"] = _ => { return "Hello World!" }; To change this to return a view instead is easy. The NancyModule base class has a property of…

Read More