# haciendolas/sigc.netcoremvc.arquitecturaonion architecture

> Architecture diagram of the GitHub repository haciendolas/sigc.netcoremvc.arquitecturaonion, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/haciendolas/sigc.netcoremvc.arquitecturaonion
- Repository: https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion

## Overview

SIGC is a business-management application with product catalog and inventory capabilities alongside organization and security administration. Users interact through a web UI or API; the sampled catalog query handler applies company context, retrieves repository data, and returns a message-wrapped result. Catalog detail queries can also resolve image URLs through file storage. The tree documents many additional catalog, inventory, organization, and access-management features, but their internal call paths were not sampled, so those branches are represented without guessed connections.

Main entry points: [`SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs) (Catalog queries), [`SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs`](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs) (Catalog details), [`SIGC.Infrastructure.GeneralService/Services/CurrentSessionService.cs`](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/CurrentSessionService.cs) (Session context), [`SIGC.Infrastructure.GeneralService/Services/MessageService.cs`](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/MessageService.cs) (Localized messages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Presentation"]
  node_webui["MVC Web UI<br/>[Program.cs]"]
  node_api["Web API<br/>[Program.cs]"]
  node_catalogapi["Catalog endpoints"]
  node_establishmentapi["Establishment endpoints"]
end

subgraph group_catalog["Catalog Management"]
  node_catalogqueries["Catalog queries"]
  node_catalogdetail["Catalog details"]
  node_variants["Catalog variants"]
  node_catalogwrites["Catalog changes<br/>[Commands]"]
  node_catalogrelated["Catalog pricing &amp; tax"]
end

subgraph group_operations["Organization &amp; Inventory"]
  node_inventory["Stock &amp; configuration"]
  node_organization["Company &amp; sites"]
  node_security["Roles &amp; users<br/>[RoleFeatures]"]
end

subgraph group_core["Application Core"]
  node_repo["Catalog data access"]
  node_session["Session context"]
  node_messages["Localized messages<br/>[MessageService.cs]"]
  node_storage["File storage"]
  node_response["Result envelope<br/>[MsgResponse.cs]"]
  node_pagination["Pagination result"]
end

node_user(("User"))

node_user -->|"uses"| node_webui
node_user -->|"calls"| node_api
node_api -.->|"routes to"| node_establishmentapi
node_catalogqueries -->|"queries"| node_repo
node_catalogqueries -->|"reads context"| node_session
node_catalogqueries -->|"gets message"| node_messages
node_catalogqueries -->|"builds result"| node_pagination
node_catalogqueries -->|"returns envelope"| node_response
node_catalogdetail -->|"reads context"| node_session
node_catalogdetail -->|"gets message"| node_messages
node_catalogdetail -->|"resolves image URL"| node_storage
node_catalogdetail -->|"returns envelope"| node_response
node_variants -->|"reads context"| node_session
node_variants -->|"gets message"| node_messages

click node_webui "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.AspNetCoreMVC/Program.cs"
click node_api "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.WebApi/Program.cs"
click node_catalogapi "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.WebApi/Controllers/CategoryController.cs"
click node_establishmentapi "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.WebApi/Controllers/EstablishmentController.cs"
click node_catalogqueries "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs"
click node_catalogdetail "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs"
click node_variants "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogVariantFeatures/Queries/CatalogVariantList/CatalogVariantListQueryHandler.cs"
click node_catalogwrites "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/CatalogFeatures/Commands"
click node_catalogrelated "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/CatalogPriceFeatures"
click node_inventory "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/CatalogStockFeatures"
click node_organization "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/EstablishmentFeatures"
click node_security "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/RoleFeatures"
click node_repo "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.ADONET.SQLSERVER/Repositories/CatalogRepositories/CatalogPaginationRepository.cs"
click node_session "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/CurrentSessionService.cs"
click node_messages "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/MessageService.cs"
click node_storage "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/LocalFileStorageServuce.cs"
click node_response "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.CrossCutting/Wrappers/MsgResponse.cs"
click node_pagination "https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Commons/Dtos/PaginationResultDto.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webui,node_api,node_catalogapi,node_establishmentapi,node_user toneBlue
class node_catalogqueries,node_catalogdetail,node_variants,node_catalogwrites,node_catalogrelated toneAmber
class node_inventory,node_organization,node_security toneMint
class node_repo,node_session,node_messages,node_storage,node_response,node_pagination toneRose
```

## Components

### Presentation

- [MVC Web UI](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.AspNetCoreMVC/Program.cs): `SIGC.Presentation.AspNetCoreMVC/Program.cs`
- [Web API](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.WebApi/Program.cs): `SIGC.Presentation.WebApi/Program.cs`
- [Catalog endpoints](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.WebApi/Controllers/CategoryController.cs): `SIGC.Presentation.WebApi/Controllers/CategoryController.cs`
- [Establishment endpoints](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Presentation.WebApi/Controllers/EstablishmentController.cs): `SIGC.Presentation.WebApi/Controllers/EstablishmentController.cs`

### Catalog Management

- [Catalog queries](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs): `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`
- [Catalog details](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs): `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs`
- [Catalog variants](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Features/CatalogVariantFeatures/Queries/CatalogVariantList/CatalogVariantListQueryHandler.cs): `SIGC.ApplicationService/Features/CatalogVariantFeatures/Queries/CatalogVariantList/CatalogVariantListQueryHandler.cs`
- [Catalog changes](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/CatalogFeatures/Commands): `SIGC.ApplicationService/Features/CatalogFeatures/Commands`
- [Catalog pricing & tax](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/CatalogPriceFeatures): `SIGC.ApplicationService/Features/CatalogPriceFeatures`

### Organization & Inventory

- [Stock & configuration](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/CatalogStockFeatures): `SIGC.ApplicationService/Features/CatalogStockFeatures`
- [Company & sites](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/EstablishmentFeatures): `SIGC.ApplicationService/Features/EstablishmentFeatures`
- [Roles & users](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/tree/master/SIGC.ApplicationService/Features/RoleFeatures): `SIGC.ApplicationService/Features/RoleFeatures`

### Application Core

- [Catalog data access](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.ADONET.SQLSERVER/Repositories/CatalogRepositories/CatalogPaginationRepository.cs): `SIGC.Infrastructure.ADONET.SQLSERVER/Repositories/CatalogRepositories/CatalogPaginationRepository.cs`
- [Session context](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/CurrentSessionService.cs): `SIGC.Infrastructure.GeneralService/Services/CurrentSessionService.cs`
- [Localized messages](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/MessageService.cs): `SIGC.Infrastructure.GeneralService/Services/MessageService.cs`
- [File storage](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.GeneralService/Services/LocalFileStorageServuce.cs): `SIGC.Infrastructure.GeneralService/Services/LocalFileStorageServuce.cs`
- [Result envelope](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.Infrastructure.CrossCutting/Wrappers/MsgResponse.cs): `SIGC.Infrastructure.CrossCutting/Wrappers/MsgResponse.cs`
- [Pagination result](https://github.com/haciendolas/sigc.netcoremvc.arquitecturaonion/blob/master/SIGC.ApplicationService/Commons/Dtos/PaginationResultDto.cs): `SIGC.ApplicationService/Commons/Dtos/PaginationResultDto.cs`

### Other components

- **User**

## Connections

- User → MVC Web UI: uses
- User → Web API: calls
- Web API → Establishment endpoints: routes to
- Catalog queries → Catalog data access: queries (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`)
- Catalog queries → Session context: reads context (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`)
- Catalog queries → Localized messages: gets message (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`)
- Catalog queries → Pagination result: builds result (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`)
- Catalog queries → Result envelope: returns envelope (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogPagination/CatalogPaginationQueryHandler.cs`)
- Catalog details → Session context: reads context (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs`)
- Catalog details → Localized messages: gets message (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs`)
- Catalog details → File storage: resolves image URL (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs`)
- Catalog details → Result envelope: returns envelope (evidence: `SIGC.ApplicationService/Features/CatalogFeatures/Queries/CatalogGet/CatalogGetQueryHandler.cs`)
- Catalog variants → Session context: reads context (evidence: `SIGC.ApplicationService/Features/CatalogVariantFeatures/Queries/CatalogVariantList/CatalogVariantListQueryHandler.cs`)
- Catalog variants → Localized messages: gets message (evidence: `SIGC.ApplicationService/Features/CatalogVariantFeatures/Queries/CatalogVariantList/CatalogVariantListQueryHandler.cs`)
