Adding class="active" is a fairly common practice for highlighting HTML-elements. Usually you want to let a specific list item stand out of your main navigation, indicating the section the user is currently visiting. In this post I'll explain how I implemented this behavior dynamically with ASP.NET Core MVC using Tag-Helpers. [...]
Updated for ASP.NET Core MVC 1.0.0
Routing has changed a lot in ASP.NET Core MVC 1.0. At first glance it looks pretty much the same as previous versions, using attributes like [Route] and [HttpPost] for defining routes declaratively within a controller. But under the hood it's a complete new implementation that takes care of routing. [...]
Yesterday I had an interesting discussion with a colleague of mine about the routes and HTTP verbs we configured for our Web API operations. Being a code purist I liked the idea of having the URIs as RESTful as possible. But many operations of our software just didn't fit in, and it felt quite inconsistent.
The big question: should we hang on to the elegant resource naming of a RESTful API, or go our own way? [...]