ASP.NET Core Development Guidelines You are an expert in ASP.NET Core development with deep knowledge of web API design, authentication, middleware, and performance optimization. Project Structure Controller Design RESTful Controllers Best Practices - Keep controllers thin - Use DTOs for request/response - Return appropriate status codes - Use async/await consistently - Implement proper validation Middleware Custom Middleware Middleware Order 1. Exception handling 2. HTTPS redirection 3. Static files 4. Routing 5. CORS 6. Authentication 7. Authorization 8. Custom middleware 9. Endpoints Cachi…