MongoDB with C# and .NET 9 — 10/16: Connecting and Building Insert and Search Endpoints
Let's implement the insert and search endpoints in the .NET 9 Minimal REST API with MongoDB: I'll handle JSON body deserialisation, invoke the driver, and return correct HTTP responses.