How to Avoid Duplicate 404 Code in .NET Core APIs - Part 3Part 1 Part 2 The Current Problem It's great that we can now have all of our 404 Entity Not Found code be generic so that it can be used for all top-level resources. The issue is, we now are making a call to the database in the EntityNotFound attr...Oct 7, 2021 · 3 min readthedoodledad.hashnode.dev
How to Avoid Duplicate 404 Code in .NET Core APIs - Part 2Part 1: https://thedoodledad.hashnode.dev/how-to-avoid-duplicate-404-code-in-net-core-apis-part-1 Taking Advantage of TypeFilterAttribute Last time we looked at how to make NotFound entities much simpler, by using the IAsyncActionFilter. However, e...Oct 4, 2021 · 3 min readthedoodledad.hashnode.dev
How to Avoid Duplicate 404 Code in .NET Core APIs - Part 1The Bad Have you ever started creating an API, and by the second or third controller your code starts to look a lot like this? The library returning books is not exactly Restful, but for the sake of this article we really just are focused on the to...Sep 30, 2021 · 3 min readthedoodledad.hashnode.dev