Skip to content

Refactor ASP.NET Core codebase for cleaner architecture and performance #3

Closed

Description

@InfoTCube

Description:
Improve code organization, reduce duplication, and optimize database queries for better maintainability.

Tasks:

  • Extract business logic from controllers into services
  • Add global exception handling middleware
  • Optimize Entity Framework queries (fix N+1 issues)
  • Remove magic strings (use nameof, constants)
  • Add cancellation token support to async methods

Acceptance Criteria:

  • Controllers are thin (only handle HTTP)
  • Consistent error responses across endpoints
  • Improved query performance (measured)

Activity

  1. self-assigned this
    on Feb 24, 2026
  2. linked a pull request that will close this issueRefactoring API #6on Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions