-
Sponsored by Nick Chapsas—Want to learn how to build elegant REST APIs in .NET? Get 5% off Nick's latest course "From Zero to Hero: REST APIs in .NET"!
-
My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback. You even get a free copy of the previous editions of ASP.NET Core in Action!
-
Using strongly-typed entity IDs to avoid primitive obsession
In this series I describe how to use middleware as an MVC filter to add request localisation to your app.…
-
How to format response data as XML or JSON, based on the request URL in ASP.NET Core
In this post I'll show how to use the FormatFilter, so that you can specify the output format for an action using a URL suffix, e.g. /api/values.xml as XML.…
-
Using routing DataTokens in ASP.NET Core
This post takes a look at data tokens and how to use them to provide route information in your apps, but generally I recommend avoiding them if you can.…
-
Using a culture constraint and redirecting 404s with the url culture provider
Adding a URL culture provider using middleware as filters - Part 4
In this post, I'll show how we can create a custom route constraint to help prevent invalid route matching, and add additional routes to catch 404 errors.…
-
Adding a URL culture provider using middleware as filters
In this series I describe how to use middleware as an MVC filter to add request localisation to your app.…