# sazid270/bgb architecture

> Architecture diagram of the GitHub repository sazid270/bgb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sazid270/bgb
- Repository: https://github.com/sazid270/bgb

## Overview

BGB is an ASP.NET Core public-information and services website. Visitors enter through the default MVC route and reach pages for agency information, operations, careers, contacts, and public services; account registration and sign-in are handled separately through ASP.NET Identity. The graph includes the MVC, view, identity, and persistence layers. The README is empty, so feature coverage is based on the repository tree; links are limited to relationships shown in sampled code or framework configuration.

Main entry points: [`Program.cs`](https://github.com/sazid270/bgb/blob/main/Program.cs) (ASP.NET application), [`Data/ApplicationDbContext.cs`](https://github.com/sazid270/bgb/blob/main/Data/ApplicationDbContext.cs) (Identity database context), [`Controllers/AuthenticationController.cs`](https://github.com/sazid270/bgb/blob/main/Controllers/AuthenticationController.cs) (Account actions), [`Controllers/HomeController.cs`](https://github.com/sazid270/bgb/blob/main/Controllers/HomeController.cs) (Home pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Information"]
  node_home["Home pages<br/>[HomeController.cs]"]
  node_homeviews["Home views"]
  node_about["About pages<br/>[AboutController.cs]"]
  node_aboutviews["About views"]
  node_operations["Operations pages"]
  node_operationsviews["Operations views"]
  node_careers["Careers pages"]
  node_careerviews["Careers views"]
  node_contact["Contact pages"]
  node_contactviews["Contact views"]
end

subgraph group_services["Public Services"]
  node_services["Service forms"]
  node_serviceviews["Service views"]
end

subgraph group_identity["Accounts"]
  node_auth["Account actions"]
  node_authviews["Account views"]
  node_identitypages["Identity Razor pages"]
  node_identityservices["ASP.NET Identity<br/>[Program.cs]"]
  node_authmodel["User entity<br/>[Authentication.cs]"]
  node_viewmodels["Account view models"]
end

subgraph group_platform["Web Platform"]
  node_webapp["ASP.NET application<br/>[Program.cs]"]
  node_dbcontext["Identity database context"]
end

node_visitor(("Visitor"))
node_sqlserver[("SQL Server")]

node_visitor -->|"requests pages"| node_webapp
node_webapp -->|"routes requests"| node_home
node_home -->|"renders"| node_homeviews
node_about -->|"renders"| node_aboutviews
node_operations -->|"renders"| node_operationsviews
node_careers -->|"renders"| node_careerviews
node_contact -->|"renders"| node_contactviews
node_services -->|"renders"| node_serviceviews
node_auth -->|"renders"| node_authviews
node_auth -->|"creates and signs in"| node_identityservices
node_auth -->|"accepts"| node_viewmodels
node_identityservices -->|"manages users"| node_authmodel
node_identityservices -->|"stores identities"| node_dbcontext
node_webapp -->|"configures database"| node_dbcontext
node_dbcontext -->|"defines set"| node_authmodel
node_dbcontext -->|"uses provider"| node_sqlserver
node_webapp -->|"maps Razor pages"| node_identitypages

click node_webapp "https://github.com/sazid270/bgb/blob/main/Program.cs"
click node_home "https://github.com/sazid270/bgb/blob/main/Controllers/HomeController.cs"
click node_homeviews "https://github.com/sazid270/bgb/tree/main/Views/Home"
click node_about "https://github.com/sazid270/bgb/blob/main/Controllers/AboutController.cs"
click node_aboutviews "https://github.com/sazid270/bgb/tree/main/Views/About"
click node_operations "https://github.com/sazid270/bgb/blob/main/Controllers/OperationsController.cs"
click node_operationsviews "https://github.com/sazid270/bgb/tree/main/Views/Operations"
click node_careers "https://github.com/sazid270/bgb/blob/main/Controllers/CareersController.cs"
click node_careerviews "https://github.com/sazid270/bgb/tree/main/Views/Careers"
click node_contact "https://github.com/sazid270/bgb/blob/main/Controllers/ContactController.cs"
click node_contactviews "https://github.com/sazid270/bgb/tree/main/Views/Contact"
click node_services "https://github.com/sazid270/bgb/blob/main/Controllers/ServicesController.cs"
click node_serviceviews "https://github.com/sazid270/bgb/tree/main/Views/Services"
click node_auth "https://github.com/sazid270/bgb/blob/main/Controllers/AuthenticationController.cs"
click node_authviews "https://github.com/sazid270/bgb/tree/main/Views/Authentication"
click node_identitypages "https://github.com/sazid270/bgb/tree/main/Areas/Identity/Pages"
click node_identityservices "https://github.com/sazid270/bgb/blob/main/Program.cs"
click node_authmodel "https://github.com/sazid270/bgb/blob/main/Entities/Authentication.cs"
click node_viewmodels "https://github.com/sazid270/bgb/tree/main/Models"
click node_dbcontext "https://github.com/sazid270/bgb/blob/main/Data/ApplicationDbContext.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_home,node_homeviews,node_about,node_aboutviews,node_operations,node_operationsviews,node_careers,node_careerviews,node_contact,node_contactviews toneBlue
class node_services,node_serviceviews,node_sqlserver toneAmber
class node_auth,node_authviews,node_identitypages,node_identityservices,node_authmodel,node_viewmodels toneMint
class node_webapp,node_dbcontext toneRose
class node_visitor toneIndigo
```

## Components

### Public Information

- [Home pages](https://github.com/sazid270/bgb/blob/main/Controllers/HomeController.cs): `Controllers/HomeController.cs`
- [Home views](https://github.com/sazid270/bgb/tree/main/Views/Home): `Views/Home`
- [About pages](https://github.com/sazid270/bgb/blob/main/Controllers/AboutController.cs): `Controllers/AboutController.cs`
- [About views](https://github.com/sazid270/bgb/tree/main/Views/About): `Views/About`
- [Operations pages](https://github.com/sazid270/bgb/blob/main/Controllers/OperationsController.cs): `Controllers/OperationsController.cs`
- [Operations views](https://github.com/sazid270/bgb/tree/main/Views/Operations): `Views/Operations`
- [Careers pages](https://github.com/sazid270/bgb/blob/main/Controllers/CareersController.cs): `Controllers/CareersController.cs`
- [Careers views](https://github.com/sazid270/bgb/tree/main/Views/Careers): `Views/Careers`
- [Contact pages](https://github.com/sazid270/bgb/blob/main/Controllers/ContactController.cs): `Controllers/ContactController.cs`
- [Contact views](https://github.com/sazid270/bgb/tree/main/Views/Contact): `Views/Contact`

### Public Services

- [Service forms](https://github.com/sazid270/bgb/blob/main/Controllers/ServicesController.cs): `Controllers/ServicesController.cs`
- [Service views](https://github.com/sazid270/bgb/tree/main/Views/Services): `Views/Services`

### Accounts

- [Account actions](https://github.com/sazid270/bgb/blob/main/Controllers/AuthenticationController.cs): `Controllers/AuthenticationController.cs`
- [Account views](https://github.com/sazid270/bgb/tree/main/Views/Authentication): `Views/Authentication`
- [Identity Razor pages](https://github.com/sazid270/bgb/tree/main/Areas/Identity/Pages): `Areas/Identity/Pages`
- [ASP.NET Identity](https://github.com/sazid270/bgb/blob/main/Program.cs): `Program.cs`
- [User entity](https://github.com/sazid270/bgb/blob/main/Entities/Authentication.cs): `Entities/Authentication.cs`
- [Account view models](https://github.com/sazid270/bgb/tree/main/Models): `Models`

### Web Platform

- [ASP.NET application](https://github.com/sazid270/bgb/blob/main/Program.cs): `Program.cs`
- [Identity database context](https://github.com/sazid270/bgb/blob/main/Data/ApplicationDbContext.cs): `Data/ApplicationDbContext.cs`

### Other components

- **Visitor**
- **SQL Server**

## Connections

- Visitor → ASP.NET application: requests pages (evidence: `Program.cs`)
- ASP.NET application → Home pages: routes requests (evidence: `Program.cs`)
- Home pages → Home views: renders (evidence: `Controllers/HomeController.cs`)
- About pages → About views: renders (evidence: `Controllers/AboutController.cs`)
- Operations pages → Operations views: renders (evidence: `Controllers/OperationsController.cs`)
- Careers pages → Careers views: renders (evidence: `Controllers/CareersController.cs`)
- Contact pages → Contact views: renders (evidence: `Controllers/ContactController.cs`)
- Service forms → Service views: renders (evidence: `Controllers/ServicesController.cs`)
- Account actions → Account views: renders (evidence: `Controllers/AuthenticationController.cs`)
- Account actions → ASP.NET Identity: creates and signs in (evidence: `Controllers/AuthenticationController.cs`)
- Account actions → Account view models: accepts (evidence: `Controllers/AuthenticationController.cs`)
- ASP.NET Identity → User entity: manages users (evidence: `Program.cs`)
- ASP.NET Identity → Identity database context: stores identities (evidence: `Program.cs`)
- ASP.NET application → Identity database context: configures database (evidence: `Program.cs`)
- Identity database context → User entity: defines set (evidence: `Data/ApplicationDbContext.cs`)
- Identity database context → SQL Server: uses provider
- ASP.NET application → Identity Razor pages: maps Razor pages (evidence: `Program.cs`)
