# grkmefedrsn34/foody architecture

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

- Interactive diagram: https://gitdiagram.com/grkmefedrsn34/foody
- Repository: https://github.com/grkmefedrsn34/foody

## Overview

Foody is an ASP.NET MVC food-business site with public-facing content and an administrative content-management area. The visible workflow is an HTTP request routed to a controller, which uses business services for content operations; Entity Framework repositories and a SQL Server context provide persistence. The tree also shows public page components for categories, products, reviews, and other site sections. The README is only a one-line description, and several controllers, managers, and view components were not sampled, so some subsystem links are documented by registration or filenames rather than inspected call sites.

Main entry points: [`Foody.PresentationLayer/Program.cs`](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Program.cs) (MVC routing), [`Foody.BusinessLayer/Concrete/ProductManager.cs`](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/ProductManager.cs) (Product service), [`Foody.BusinessLayer/Concrete/ReviewManager.cs`](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/ReviewManager.cs) (Review service), [`Foody.DataAccessLayer/Context/FoodyContext.cs`](https://github.com/grkmefedrsn34/foody/blob/main/Foody.DataAccessLayer/Context/FoodyContext.cs) (Foody context)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Web presentation"]
  node_mvc["MVC routing<br/>[Program.cs]"]
  node_public_pages["Public page controllers"]
  node_product_admin["Product administration"]
  node_category_admin["Category administration"]
  node_about_admin["About administration"]
  node_slider_admin["Slider administration"]
  node_review_section["Review section"]
  node_public_sections["Public content sections"]
end

subgraph group_business["Business services"]
  node_product_service["Product service<br/>[ProductManager.cs]"]
  node_review_service["Review service<br/>[ReviewManager.cs]"]
  node_about_service["About service<br/>[AboutManager.cs]"]
  node_slider_service["Slider service<br/>[SliderManager.cs]"]
  node_category_service["Category service<br/>[CategoryManager.cs]"]
end

subgraph group_data["Data access"]
  node_ef_access["EF repositories<br/>[EntityFramework]"]
  node_context["Foody context<br/>[FoodyContext.cs]"]
  node_sql_store[("Foody SQL database")]
end

subgraph group_domain["Domain model"]
  node_entities["Content entities<br/>[Concrete]"]
  node_dtos["View DTOs<br/>[Dtos]"]
end

node_visitor(("Site visitor"))
node_admin(("Site administrator"))

node_visitor -->|"requests pages"| node_mvc
node_admin -->|"requests admin"| node_mvc
node_mvc -->|"routes requests"| node_public_pages
node_mvc -->|"routes requests"| node_product_admin
node_mvc -->|"routes requests"| node_category_admin
node_mvc -->|"routes requests"| node_about_admin
node_mvc -->|"routes requests"| node_slider_admin
node_product_admin -->|"calls"| node_product_service
node_product_admin -->|"calls"| node_category_service
node_category_admin -->|"calls"| node_category_service
node_about_admin -->|"calls"| node_about_service
node_about_admin -->|"maps data"| node_dtos
node_slider_admin -->|"calls"| node_slider_service
node_review_section -->|"loads reviews"| node_review_service
node_public_pages -.->|"renders sections"| node_public_sections
node_product_service -->|"delegates data"| node_ef_access
node_review_service -->|"delegates data"| node_ef_access
node_mvc -->|"registers service"| node_product_service
node_mvc -->|"registers service"| node_category_service
node_mvc -->|"registers service"| node_about_service
node_mvc -->|"registers service"| node_slider_service
node_mvc -->|"registers service"| node_review_service
node_mvc -->|"registers context"| node_context
node_ef_access -->|"uses context"| node_context
node_context -->|"connects"| node_sql_store
node_context -->|"maps sets"| node_entities
node_product_service -->|"operates on"| node_entities
node_review_service -->|"operates on"| node_entities

click node_mvc "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Program.cs"
click node_public_pages "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/DefaultController.cs"
click node_product_admin "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/ProductsController.cs"
click node_category_admin "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/CategoriesController.cs"
click node_about_admin "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/AboutsController.cs"
click node_slider_admin "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/SlidersController.cs"
click node_review_section "https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/ViewComponents/DefaultViewComponents/_DefaultReviewSectionComponentPartial.cs"
click node_public_sections "https://github.com/grkmefedrsn34/foody/tree/main/Foody.PresentationLayer/ViewComponents/DefaultViewComponents"
click node_product_service "https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/ProductManager.cs"
click node_review_service "https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/ReviewManager.cs"
click node_about_service "https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/AboutManager.cs"
click node_slider_service "https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/SliderManager.cs"
click node_category_service "https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/CategoryManager.cs"
click node_ef_access "https://github.com/grkmefedrsn34/foody/tree/main/Foody.DataAccessLayer/EntityFramework"
click node_context "https://github.com/grkmefedrsn34/foody/blob/main/Foody.DataAccessLayer/Context/FoodyContext.cs"
click node_entities "https://github.com/grkmefedrsn34/foody/tree/main/Foody.EntityLayer/Concrete"
click node_dtos "https://github.com/grkmefedrsn34/foody/tree/main/Foody.DtoLayer/Dtos"

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_public_pages,node_product_admin,node_category_admin,node_about_admin,node_slider_admin,node_review_section,node_public_sections toneBlue
class node_product_service,node_review_service,node_about_service,node_slider_service,node_category_service toneAmber
class node_ef_access,node_context,node_sql_store toneMint
class node_entities,node_dtos toneRose
class node_visitor,node_admin toneIndigo
```

## Components

### Web presentation

- [MVC routing](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Program.cs): `Foody.PresentationLayer/Program.cs`
- [Public page controllers](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/DefaultController.cs): `Foody.PresentationLayer/Controllers/DefaultController.cs`
- [Product administration](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/ProductsController.cs): `Foody.PresentationLayer/Controllers/ProductsController.cs`
- [Category administration](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/CategoriesController.cs): `Foody.PresentationLayer/Controllers/CategoriesController.cs`
- [About administration](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/AboutsController.cs): `Foody.PresentationLayer/Controllers/AboutsController.cs`
- [Slider administration](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/Controllers/SlidersController.cs): `Foody.PresentationLayer/Controllers/SlidersController.cs`
- [Review section](https://github.com/grkmefedrsn34/foody/blob/main/Foody.PresentationLayer/ViewComponents/DefaultViewComponents/_DefaultReviewSectionComponentPartial.cs): `Foody.PresentationLayer/ViewComponents/DefaultViewComponents/_DefaultReviewSectionComponentPartial.cs`
- [Public content sections](https://github.com/grkmefedrsn34/foody/tree/main/Foody.PresentationLayer/ViewComponents/DefaultViewComponents): `Foody.PresentationLayer/ViewComponents/DefaultViewComponents`

### Business services

- [Product service](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/ProductManager.cs): `Foody.BusinessLayer/Concrete/ProductManager.cs`
- [Review service](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/ReviewManager.cs): `Foody.BusinessLayer/Concrete/ReviewManager.cs`
- [About service](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/AboutManager.cs): `Foody.BusinessLayer/Concrete/AboutManager.cs`
- [Slider service](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/SliderManager.cs): `Foody.BusinessLayer/Concrete/SliderManager.cs`
- [Category service](https://github.com/grkmefedrsn34/foody/blob/main/Foody.BusinessLayer/Concrete/CategoryManager.cs): `Foody.BusinessLayer/Concrete/CategoryManager.cs`

### Data access

- [EF repositories](https://github.com/grkmefedrsn34/foody/tree/main/Foody.DataAccessLayer/EntityFramework): `Foody.DataAccessLayer/EntityFramework`
- [Foody context](https://github.com/grkmefedrsn34/foody/blob/main/Foody.DataAccessLayer/Context/FoodyContext.cs): `Foody.DataAccessLayer/Context/FoodyContext.cs`
- **Foody SQL database**

### Domain model

- [Content entities](https://github.com/grkmefedrsn34/foody/tree/main/Foody.EntityLayer/Concrete): `Foody.EntityLayer/Concrete`
- [View DTOs](https://github.com/grkmefedrsn34/foody/tree/main/Foody.DtoLayer/Dtos): `Foody.DtoLayer/Dtos`

### Other components

- **Site visitor**
- **Site administrator**

## Connections

- Site visitor → MVC routing: requests pages (evidence: `Foody.PresentationLayer/Program.cs`)
- Site administrator → MVC routing: requests admin (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Public page controllers: routes requests (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Product administration: routes requests (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Category administration: routes requests (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → About administration: routes requests (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Slider administration: routes requests (evidence: `Foody.PresentationLayer/Program.cs`)
- Product administration → Product service: calls (evidence: `Foody.PresentationLayer/Controllers/ProductsController.cs`)
- Product administration → Category service: calls (evidence: `Foody.PresentationLayer/Controllers/ProductsController.cs`)
- Category administration → Category service: calls (evidence: `Foody.PresentationLayer/Controllers/CategoriesController.cs`)
- About administration → About service: calls (evidence: `Foody.PresentationLayer/Controllers/AboutsController.cs`)
- About administration → View DTOs: maps data (evidence: `Foody.PresentationLayer/Controllers/AboutsController.cs`)
- Slider administration → Slider service: calls (evidence: `Foody.PresentationLayer/Controllers/SlidersController.cs`)
- Review section → Review service: loads reviews (evidence: `Foody.PresentationLayer/ViewComponents/DefaultViewComponents/_DefaultReviewSectionComponentPartial.cs`)
- Public page controllers → Public content sections: renders sections
- Product service → EF repositories: delegates data (evidence: `Foody.BusinessLayer/Concrete/ProductManager.cs`)
- Review service → EF repositories: delegates data (evidence: `Foody.BusinessLayer/Concrete/ReviewManager.cs`)
- MVC routing → Product service: registers service (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Category service: registers service (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → About service: registers service (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Slider service: registers service (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Review service: registers service (evidence: `Foody.PresentationLayer/Program.cs`)
- MVC routing → Foody context: registers context (evidence: `Foody.PresentationLayer/Program.cs`)
- EF repositories → Foody context: uses context (evidence: `Foody.DataAccessLayer/EntityFramework/EfReviewDal.cs`)
- Foody context → Foody SQL database: connects (evidence: `Foody.DataAccessLayer/Context/FoodyContext.cs`)
- Foody context → Content entities: maps sets (evidence: `Foody.DataAccessLayer/Context/FoodyContext.cs`)
- Product service → Content entities: operates on (evidence: `Foody.BusinessLayer/Concrete/ProductManager.cs`)
- Review service → Content entities: operates on (evidence: `Foody.BusinessLayer/Concrete/ReviewManager.cs`)
