# vaselen/crossplatform-development architecture

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

- Interactive diagram: https://gitdiagram.com/vaselen/crossplatform-development
- Repository: https://github.com/vaselen/crossplatform-development

## Overview

The repository contains two separate ASP.NET applications: a dance-school API for authentication, student/team enrollment, and subscriptions, and an MVC movie catalog with CRUD pages and startup seeding. The API workflow is represented through controllers, domain models, and its EF context; the movie workflow through MVC, its context, and seed data. Source excerpts do not show API startup wiring or the student/subscription controller implementations, so uncertain connections are omitted.

Main entry points: [`DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs`](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs) (Team API), [`DanceSchoolApi/DanceSchoolApi/Models/Team.cs`](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Team.cs) (Team Enrollment), [`WebApplication1/Controllers/MoviesController.cs`](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/MoviesController.cs) (Movie Pages), [`DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs`](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dance_api["Dance School API"]
  node_auth_controller["Authentication<br/>[Authcontroller.cs]"]
  node_auth_options["JWT Tokens<br/>[AuthOptions.cs]"]
  node_users["User Accounts<br/>[Users.cs]"]
  node_students_controller["Student API"]
  node_teams_controller["Team API<br/>[Teamscontroller.cs]"]
  node_subscriptions_controller["Subscription API"]
  node_dance_context[("Dance Context")]
end

subgraph group_dance_domain["Dance Domain"]
  node_student["Student Rules<br/>[Student.cs]"]
  node_team["Team Enrollment<br/>[Team.cs]"]
  node_student_team["Team Membership<br/>[Studentteam.cs]"]
  node_teacher["Teacher<br/>[Teacher.cs]"]
  node_subscription["Subscription Rules<br/>[Subscription.cs]"]
  node_tariff["Tariff<br/>[Tariff.cs]"]
end

subgraph group_movie_app["Movie MVC"]
  node_movies_controller["Movie Pages"]
  node_home_controller["Home Pages<br/>[HomeController.cs]"]
  node_hello_controller["Hello World"]
  node_movie_views["Movie Views"]
end

subgraph group_movie_data["Movie Data"]
  node_web_context[("Movie Context")]
  node_movie["Movie Entity<br/>[Movie.cs]"]
  node_seed_data["Sample Catalog Seed<br/>[SeedData.cs]"]
  node_error_view["Error View Model<br/>[ErrorViewModel.cs]"]
end

node_api_client(("API Client"))
node_movie_user(("Web User"))

node_api_client -->|"requests auth"| node_auth_controller
node_auth_controller -->|"generates token"| node_auth_options
node_auth_controller -->|"checks accounts"| node_users
node_api_client -.->|"manages students"| node_students_controller
node_api_client -->|"manages teams"| node_teams_controller
node_api_client -.->|"manages subscriptions"| node_subscriptions_controller
node_teams_controller -->|"queries and saves"| node_dance_context
node_students_controller -.->|"uses context"| node_dance_context
node_subscriptions_controller -.->|"uses context"| node_dance_context
node_teams_controller -->|"enrollment rules"| node_team
node_teams_controller -->|"loads students"| node_student
node_team -->|"checks eligibility"| node_student
node_team -->|"creates membership"| node_student_team
node_team -->|"references teacher"| node_teacher
node_student -->|"tracks memberships"| node_student_team
node_student_team -->|"tracks subscriptions"| node_subscription
node_subscription -->|"references tariff"| node_tariff
node_movie_user -->|"browses and edits"| node_movies_controller
node_movies_controller -->|"queries and saves"| node_web_context
node_movies_controller -->|"binds movie data"| node_movie
node_movies_controller -->|"renders pages"| node_movie_views
node_web_context -->|"stores entities"| node_movie
node_movie_user -.->|"opens home pages"| node_home_controller
node_movie_user -.->|"opens greeting pages"| node_hello_controller
node_home_controller -->|"returns error model"| node_error_view
node_seed_data -->|"seeds catalog"| node_web_context
node_seed_data -->|"adds sample movies"| node_movie

click node_auth_controller "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs"
click node_auth_options "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/AuthOptions.cs"
click node_users "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Users.cs"
click node_students_controller "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Studentscontroller.cs"
click node_teams_controller "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs"
click node_subscriptions_controller "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Subscriptionscontroller.cs"
click node_dance_context "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Data/Danceschoolcontext.cs"
click node_student "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Student.cs"
click node_team "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Team.cs"
click node_student_team "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Studentteam.cs"
click node_teacher "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Teacher.cs"
click node_subscription "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Subscription.cs"
click node_tariff "https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Tariff.cs"
click node_movies_controller "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/MoviesController.cs"
click node_home_controller "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/HomeController.cs"
click node_hello_controller "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/HelloWorldController.cs"
click node_movie_views "https://github.com/vaselen/crossplatform-development/tree/main/WebApplication1/Views/Movies"
click node_web_context "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Data/WebApplication1Context.cs"
click node_movie "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Models/Movie.cs"
click node_seed_data "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Models/SeedData.cs"
click node_error_view "https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Models/ErrorViewModel.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_auth_controller,node_auth_options,node_users,node_students_controller,node_teams_controller,node_subscriptions_controller,node_dance_context,node_api_client,node_movie_user toneBlue
class node_student,node_team,node_student_team,node_teacher,node_subscription,node_tariff toneAmber
class node_movies_controller,node_home_controller,node_hello_controller,node_movie_views toneMint
class node_web_context,node_movie,node_seed_data,node_error_view toneRose
```

## Components

### Dance School API

- [Authentication](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs): `DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs`
- [JWT Tokens](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/AuthOptions.cs): `DanceSchoolApi/DanceSchoolApi/AuthOptions.cs`
- [User Accounts](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Users.cs): `DanceSchoolApi/DanceSchoolApi/Users.cs`
- [Student API](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Studentscontroller.cs): `DanceSchoolApi/DanceSchoolApi/Controllers/Studentscontroller.cs`
- [Team API](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs): `DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs`
- [Subscription API](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Controllers/Subscriptionscontroller.cs): `DanceSchoolApi/DanceSchoolApi/Controllers/Subscriptionscontroller.cs`
- [Dance Context](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Data/Danceschoolcontext.cs): `DanceSchoolApi/DanceSchoolApi/Data/Danceschoolcontext.cs`

### Dance Domain

- [Student Rules](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Student.cs): `DanceSchoolApi/DanceSchoolApi/Models/Student.cs`
- [Team Enrollment](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Team.cs): `DanceSchoolApi/DanceSchoolApi/Models/Team.cs`
- [Team Membership](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Studentteam.cs): `DanceSchoolApi/DanceSchoolApi/Models/Studentteam.cs`
- [Teacher](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Teacher.cs): `DanceSchoolApi/DanceSchoolApi/Models/Teacher.cs`
- [Subscription Rules](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Subscription.cs): `DanceSchoolApi/DanceSchoolApi/Models/Subscription.cs`
- [Tariff](https://github.com/vaselen/crossplatform-development/blob/main/DanceSchoolApi/DanceSchoolApi/Models/Tariff.cs): `DanceSchoolApi/DanceSchoolApi/Models/Tariff.cs`

### Movie MVC

- [Movie Pages](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/MoviesController.cs): `WebApplication1/Controllers/MoviesController.cs`
- [Home Pages](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/HomeController.cs): `WebApplication1/Controllers/HomeController.cs`
- [Hello World](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Controllers/HelloWorldController.cs): `WebApplication1/Controllers/HelloWorldController.cs`
- [Movie Views](https://github.com/vaselen/crossplatform-development/tree/main/WebApplication1/Views/Movies): `WebApplication1/Views/Movies`

### Movie Data

- [Movie Context](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Data/WebApplication1Context.cs): `WebApplication1/Data/WebApplication1Context.cs`
- [Movie Entity](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Models/Movie.cs): `WebApplication1/Models/Movie.cs`
- [Sample Catalog Seed](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Models/SeedData.cs): `WebApplication1/Models/SeedData.cs`
- [Error View Model](https://github.com/vaselen/crossplatform-development/blob/main/WebApplication1/Models/ErrorViewModel.cs): `WebApplication1/Models/ErrorViewModel.cs`

### Other components

- **API Client**
- **Web User**

## Connections

- API Client → Authentication: requests auth (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs`)
- Authentication → JWT Tokens: generates token (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs`)
- Authentication → User Accounts: checks accounts (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Authcontroller.cs`)
- API Client → Student API: manages students
- API Client → Team API: manages teams (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs`)
- API Client → Subscription API: manages subscriptions
- Team API → Dance Context: queries and saves (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs`)
- Student API → Dance Context: uses context
- Subscription API → Dance Context: uses context
- Team API → Team Enrollment: enrollment rules (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs`)
- Team API → Student Rules: loads students (evidence: `DanceSchoolApi/DanceSchoolApi/Controllers/Teamscontroller.cs`)
- Team Enrollment → Student Rules: checks eligibility (evidence: `DanceSchoolApi/DanceSchoolApi/Models/Team.cs`)
- Team Enrollment → Team Membership: creates membership (evidence: `DanceSchoolApi/DanceSchoolApi/Models/Team.cs`)
- Team Enrollment → Teacher: references teacher (evidence: `DanceSchoolApi/DanceSchoolApi/Models/Team.cs`)
- Student Rules → Team Membership: tracks memberships (evidence: `DanceSchoolApi/DanceSchoolApi/Models/Student.cs`)
- Team Membership → Subscription Rules: tracks subscriptions (evidence: `DanceSchoolApi/DanceSchoolApi/Models/Studentteam.cs`)
- Subscription Rules → Tariff: references tariff (evidence: `DanceSchoolApi/DanceSchoolApi/Models/Subscription.cs`)
- Web User → Movie Pages: browses and edits (evidence: `WebApplication1/Controllers/MoviesController.cs`)
- Movie Pages → Movie Context: queries and saves (evidence: `WebApplication1/Controllers/MoviesController.cs`)
- Movie Pages → Movie Entity: binds movie data (evidence: `WebApplication1/Controllers/MoviesController.cs`)
- Movie Pages → Movie Views: renders pages (evidence: `WebApplication1/Controllers/MoviesController.cs`)
- Movie Context → Movie Entity: stores entities (evidence: `WebApplication1/Data/WebApplication1Context.cs`)
- Web User → Home Pages: opens home pages
- Web User → Hello World: opens greeting pages
- Home Pages → Error View Model: returns error model (evidence: `WebApplication1/Controllers/HomeController.cs`)
- Sample Catalog Seed → Movie Context: seeds catalog (evidence: `WebApplication1/Models/SeedData.cs`)
- Sample Catalog Seed → Movie Entity: adds sample movies (evidence: `WebApplication1/Models/SeedData.cs`)
