# 7788551/testing-2 architecture

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

- Interactive diagram: https://gitdiagram.com/7788551/testing-2
- Repository: https://github.com/7788551/testing-2

## Overview

This ASP.NET MVC application presents informational pages and a public card listing, while administrators create, view, edit, and delete card records with optional icon-image uploads. The request path is routed to MVC controllers; controller actions query SQL Server and pass card data to views. Admin image files are stored separately under the application’s image directory. The controller excerpts establish database and image operations; view mappings and several admin action details are not fully sampled, so those links are left unverified.

Main entry points: [`Testing 2/Controllers/AdminController.cs`](https://github.com/7788551/testing-2/blob/master/Testing%202/Controllers/AdminController.cs) (Admin actions), [`Testing 2/App_Start/RouteConfig.cs`](https://github.com/7788551/testing-2/blob/master/Testing%202/App_Start/RouteConfig.cs) (MVC routing), [`Testing 2/Controllers/HomeController.cs`](https://github.com/7788551/testing-2/blob/master/Testing%202/Controllers/HomeController.cs) (Home actions), [`Testing 2/Models/Cards.cs`](https://github.com/7788551/testing-2/blob/master/Testing%202/Models/Cards.cs) (Card model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web entry and pages"]
  node_routing["MVC routing<br/>[RouteConfig.cs]"]
  node_startup["Application startup<br/>[Global.asax.cs]"]
  node_home["Home actions<br/>[HomeController.cs]"]
  node_homeviews["Public pages"]
end

subgraph group_cards["Card management"]
  node_admin["Admin actions<br/>[AdminController.cs]"]
  node_adminviews["Admin pages"]
  node_cardmodel["Card model<br/>[Cards.cs]"]
end

subgraph group_persistence["Card data and files"]
  node_sqldb[("SQL Server")]
  node_iconfiles[("Icon image files")]
end

node_visitor(("Visitor"))
node_adminuser(("Administrator"))

node_startup -->|"registers routes"| node_routing
node_visitor -.->|"requests pages"| node_routing
node_adminuser -.->|"requests admin"| node_routing
node_routing -.->|"dispatches requests"| node_home
node_routing -.->|"dispatches requests"| node_admin
node_home -->|"queries cards"| node_sqldb
node_home -->|"creates records"| node_cardmodel
node_home -.->|"returns views"| node_homeviews
node_admin -->|"reads and writes"| node_sqldb
node_admin -->|"uses card data"| node_cardmodel
node_admin -->|"saves uploads"| node_iconfiles
node_admin -.->|"returns views"| node_adminviews

click node_routing "https://github.com/7788551/testing-2/blob/master/Testing%202/App_Start/RouteConfig.cs"
click node_startup "https://github.com/7788551/testing-2/blob/master/Testing%202/Global.asax.cs"
click node_home "https://github.com/7788551/testing-2/blob/master/Testing%202/Controllers/HomeController.cs"
click node_homeviews "https://github.com/7788551/testing-2/tree/master/Testing%202/Views/Home"
click node_admin "https://github.com/7788551/testing-2/blob/master/Testing%202/Controllers/AdminController.cs"
click node_adminviews "https://github.com/7788551/testing-2/tree/master/Testing%202/Views/Admin"
click node_cardmodel "https://github.com/7788551/testing-2/blob/master/Testing%202/Models/Cards.cs"
click node_iconfiles "https://github.com/7788551/testing-2/tree/master/Testing%202/Content/images/IconImages"

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_routing,node_startup,node_home,node_homeviews toneBlue
class node_admin,node_adminviews,node_cardmodel toneAmber
class node_sqldb,node_iconfiles toneMint
class node_visitor,node_adminuser toneIndigo
```

## Components

### Web entry and pages

- [MVC routing](https://github.com/7788551/testing-2/blob/master/Testing%202/App_Start/RouteConfig.cs): `Testing 2/App_Start/RouteConfig.cs`
- [Application startup](https://github.com/7788551/testing-2/blob/master/Testing%202/Global.asax.cs): `Testing 2/Global.asax.cs`
- [Home actions](https://github.com/7788551/testing-2/blob/master/Testing%202/Controllers/HomeController.cs): `Testing 2/Controllers/HomeController.cs`
- [Public pages](https://github.com/7788551/testing-2/tree/master/Testing%202/Views/Home): `Testing 2/Views/Home`

### Card management

- [Admin actions](https://github.com/7788551/testing-2/blob/master/Testing%202/Controllers/AdminController.cs): `Testing 2/Controllers/AdminController.cs`
- [Admin pages](https://github.com/7788551/testing-2/tree/master/Testing%202/Views/Admin): `Testing 2/Views/Admin`
- [Card model](https://github.com/7788551/testing-2/blob/master/Testing%202/Models/Cards.cs): `Testing 2/Models/Cards.cs`

### Card data and files

- **SQL Server**
- [Icon image files](https://github.com/7788551/testing-2/tree/master/Testing%202/Content/images/IconImages): `Testing 2/Content/images/IconImages`

### Other components

- **Visitor**
- **Administrator**

## Connections

- Application startup → MVC routing: registers routes (evidence: `Testing 2/Global.asax.cs`)
- Visitor → MVC routing: requests pages
- Administrator → MVC routing: requests admin
- MVC routing → Home actions: dispatches requests
- MVC routing → Admin actions: dispatches requests
- Home actions → SQL Server: queries cards (evidence: `Testing 2/Controllers/HomeController.cs`)
- Home actions → Card model: creates records (evidence: `Testing 2/Controllers/HomeController.cs`)
- Home actions → Public pages: returns views
- Admin actions → SQL Server: reads and writes (evidence: `Testing 2/Controllers/AdminController.cs`)
- Admin actions → Card model: uses card data (evidence: `Testing 2/Controllers/AdminController.cs`)
- Admin actions → Icon image files: saves uploads (evidence: `Testing 2/Controllers/AdminController.cs`)
- Admin actions → Admin pages: returns views
