DbContext-consuming service as Singleton — DbContext isn't thread-safe, and this breaks the moment two requests hit it concurrently.Scoped service into a Singleton, freezing that scoped instance for the app's entire lifetime instead of getting a fresh one per request..Result/.Wait() instead of await, tying up thread pool threads (and, in some hosting contexts, risking a deadlock) that should have been freed during I/O.ProblemDetails/error-handling middleware — leaks internal details and gives callers nothing structured to handle.AllowAnyOrigin() combined with AllowCredentials() (which the CORS spec itself disallows) or leaving permissive CORS configured in production after using it to silence a local development error.[ApiController] only infers one [FromBody] parameter per action.See how ASP.NET Core's middleware pipeline compares to Express.js and Django's in Middleware Pipelines Compared, and revisit the value-type/reference-type and DbContext-lifetime reasoning underneath this whole stack in C# Fundamentals. Practice the underlying C# and API-design reasoning in the code lab.