# lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn architecture

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

- Interactive diagram: https://gitdiagram.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn
- Repository: https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn

## Overview

Florissa is an ASP.NET Core flower-shop management application. A customer can browse flower designs, assemble a cart or request a custom design, and place orders; staff and administrators manage shop records and order fulfillment. The tree also indicates account/profile, favorites, reviews, and delivery workflows. The sampled code confirms account and customer persistence, order-related data models, and MVC routing; most shopping and administrative controller implementations were not sampled, so those connections are marked unverified rather than asserted as inspected.

Main entry points: [`QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs) (MVC application), [`QuanLyCuaHangHoa_UNETI02_TI17A5HN/Data/AppDbContext.cs`](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Data/AppDbContext.cs) (EF data context), [`QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/DatHangController.cs`](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/DatHangController.cs) (Order placement), [`QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers`](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers) (Admin management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Customer storefront"]
  node_mvc["MVC application<br/>[Program.cs]"]
  node_catalog["Flower catalog"]
  node_cart["Cart and checkout"]
  node_order["Order placement"]
  node_design["Custom designs"]
  node_favorites["Favorites"]
  node_profile["Profile and history<br/>[HoSoController.cs]"]
end

subgraph group_operations["Shop operations"]
  node_admin["Admin management"]
end

subgraph group_identity["Identity and access"]
  node_authui["Login and registration"]
  node_authservice["Account service<br/>[TaiKhoanService.cs]"]
  node_viewmodels["Account view models"]
end

subgraph group_data["Persistence and domain"]
  node_entities["Shop domain entities"]
  node_context["EF data context<br/>[AppDbContext.cs]"]
end

node_shopper(("Shopper"))
node_staff(("Staff / admin"))
node_sql[("SQL Server")]

node_shopper -.->|"uses storefront"| node_mvc
node_staff -.->|"uses admin"| node_mvc
node_mvc -->|"routes requests"| node_catalog
node_mvc -->|"routes requests"| node_cart
node_mvc -->|"routes requests"| node_order
node_mvc -->|"routes requests"| node_design
node_mvc -->|"routes requests"| node_favorites
node_mvc -->|"routes requests"| node_profile
node_mvc -->|"routes requests"| node_authui
node_mvc -->|"routes requests"| node_admin
node_authui -->|"delegates account work"| node_authservice
node_authservice -->|"reads and writes"| node_context
node_authui -->|"uses input models"| node_viewmodels
node_profile -->|"reads and writes"| node_context
node_admin -->|"manages customers"| node_context
node_context -->|"maps entities"| node_entities
node_context -->|"uses provider"| node_sql
node_catalog -.->|"reads catalog"| node_context
node_cart -.->|"submits cart"| node_order
node_order -.->|"stores orders"| node_context
node_design -.->|"requests custom order"| node_order
node_favorites -.->|"stores favorites"| node_context
node_admin -.->|"handles fulfillment"| node_context

click node_mvc "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs"
click node_catalog "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers"
click node_cart "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/GioHangController.cs"
click node_order "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/DatHangController.cs"
click node_design "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/ThietKeRiengController.cs"
click node_favorites "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/YeuThichController.cs"
click node_profile "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/HoSoController.cs"
click node_authui "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/TaiKhoanController.cs"
click node_authservice "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Services/TaiKhoanService.cs"
click node_admin "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers"
click node_entities "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Models/Entities"
click node_viewmodels "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Models/ViewModels"
click node_context "https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Data/AppDbContext.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_mvc,node_catalog,node_cart,node_order,node_design,node_favorites,node_profile toneBlue
class node_admin,node_sql toneAmber
class node_authui,node_authservice,node_viewmodels toneMint
class node_entities,node_context toneRose
class node_shopper,node_staff toneIndigo
```

## Components

### Customer storefront

- [MVC application](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`
- [Flower catalog](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers`
- [Cart and checkout](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/GioHangController.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/GioHangController.cs`
- [Order placement](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/DatHangController.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/DatHangController.cs`
- [Custom designs](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/ThietKeRiengController.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/ThietKeRiengController.cs`
- [Favorites](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/YeuThichController.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/YeuThichController.cs`
- [Profile and history](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/HoSoController.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/HoSoController.cs`

### Shop operations

- [Admin management](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers`

### Identity and access

- [Login and registration](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/TaiKhoanController.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/TaiKhoanController.cs`
- [Account service](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Services/TaiKhoanService.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Services/TaiKhoanService.cs`
- [Account view models](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Models/ViewModels): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Models/ViewModels`

### Persistence and domain

- [Shop domain entities](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/tree/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Models/Entities): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Models/Entities`
- [EF data context](https://github.com/lnhuyen2908/quanlycuahanghoa_uneti02_ti17a5hn/blob/main/QuanLyCuaHangHoa_UNETI02_TI17A5HN/Data/AppDbContext.cs): `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Data/AppDbContext.cs`

### Other components

- **Shopper**
- **Staff / admin**
- **SQL Server**

## Connections

- Shopper → MVC application: uses storefront
- Staff / admin → MVC application: uses admin
- MVC application → Flower catalog: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Cart and checkout: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Order placement: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Custom designs: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Favorites: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Profile and history: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Login and registration: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- MVC application → Admin management: routes requests (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Program.cs`)
- Login and registration → Account service: delegates account work (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/TaiKhoanController.cs`)
- Account service → EF data context: reads and writes (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Services/TaiKhoanService.cs`)
- Login and registration → Account view models: uses input models (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/TaiKhoanController.cs`)
- Profile and history → EF data context: reads and writes (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/HoSoController.cs`)
- Admin management → EF data context: manages customers (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers/KhachHangController.cs`)
- EF data context → Shop domain entities: maps entities (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Data/AppDbContext.cs`)
- EF data context → SQL Server: uses provider
- Flower catalog → EF data context: reads catalog (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/User/Controllers/HoSoController.cs`)
- Cart and checkout → Order placement: submits cart
- Order placement → EF data context: stores orders
- Custom designs → Order placement: requests custom order
- Favorites → EF data context: stores favorites
- Admin management → EF data context: handles fulfillment (evidence: `QuanLyCuaHangHoa_UNETI02_TI17A5HN/Areas/Admin/Controllers/KhachHangController.cs`)
