May 18, 2020
We commonly use C# Enumeration types to represent a set of named constants within our applications. Often the values for such properties comes from the user via an API request but unfortunately the default model-binding and validation behavior in ASP.NET Core does provide the desired API experience. This post looks at how we handle binding and validating enum values in our APIs as well as supporting snake_case variants of the enum member names.
March 19, 2020
Endpoint routing was first introduced in ASP.NET Core 2.2 with the goal of making routing a cross-cutting concern, decoupling it from the MVC framework. This post explains how to resolve the current route name in ASP.NET Core 3.1.
March 19, 2019
This post explains how to use overload of the IUrlHelper interface to customise aspects of generated route URLs such as host, port and path.
March 10, 2018
This post covers how to register UrlHelper with the built-in DI container in ASP.NET Core MVC to make it injectable into other components.
December 4, 2016
How to build bare metal APIs using only the minimal required ASP.NET Core MVC components.