Getting a complex type as a simple type from the query string in a ASP.NET Core API controller
This is a tale of a good amount of hours of wasted time, so I鈥檓 going to document it so I remember it in the future. The idea is simple: when building an API, how can we treat a complex type as a simple type, to avoid things like primitive obsession, implement strongly typed ids and other related patterns? Let鈥檚 find out! 馃檪