How matiasarbz/mypastelitos works
MyPastelitos.Web is an ASP.NET application for browsing recipes and sections, managing accounts and users, and administering roles and permissions. The main management workflow is a browser or API request into a controller, through a domain service, and—where shown—to the EF data context. Account login is a separate web/API workflow; section and recipe browsing form the customer-facing domain. The tree and index identify additional capabilities, but their implementations were not sampled, so some links are intentionally omitted. Edges rely on indexed references or shown code; dashed edges indicate unverified routing.
Main entry points: DataContext.cs Application data · AccountService.cs Account service · AccountController.cs API account · SectionsController.cs Section API
Components 26
Recipe browsing
- Recipe endpoints
MyPastelitos.Web/Controllers/RecipeController.cs - Recipe service
MyPastelitos.Web/Services/Implementations/RecipesService.cs - Home pages
MyPastelitos.Web/Controllers/HomeController.cs - Home service
MyPastelitos.Web/Services/Implementations/HomeService.cs
Accounts and users
- Web account
MyPastelitos.Web/Controllers/AccountController.cs - API account
MyPastelitos.Web/Controllers/Api/AccountController.cs - Account service
MyPastelitos.Web/Services/Implementations/AccountService.cs - User management
MyPastelitos.Web/Controllers/UsersController.cs - Users service
MyPastelitos.Web/Services/Implementations/UsersService.cs
Administration
- Section management
MyPastelitos.Web/Controllers/SectionsController.cs - Section API
MyPastelitos.Web/Controllers/Api/SectionsController.cs - Section service
MyPastelitos.Web/Services/Implementations/SectionsService.cs - Role management
MyPastelitos.Web/Controllers/RolesController.cs - Roles service
MyPastelitos.Web/Services/Implementations/RolesService.cs
Shared platform
- API responses
MyPastelitos.Web/Controllers/Api/ApiController.cs - Authorization rules
MyPastelitos.Web/Core/Attributes/CustomAuthorizeAttribute.cs - Query operations
MyPastelitos.Web/Services/CustomQueryableOperationsService.cs - Application data
MyPastelitos.Web/Data/DataContext.cs - User records
MyPastelitos.Web/Data/Entities/User.cs - Section records
MyPastelitos.Web/Data/Entities/Section.cs - Private roles
MyPastelitos.Web/Data/Entities/PrivateRecipeRole.cs - Permissions
MyPastelitos.Web/Data/Entities/Permission.cs - Role permissions
MyPastelitos.Web/Data/Entities/RolePermission.cs - Recipe records
MyPastelitos.Web/Data/Entities/Recipe.cs
Other components
- Browser user
- API client
Connections 32
- Browser user → Web account: submits login
- Browser user → User management: manages users
- Browser user → Section management: manages sections
- Browser user → Role management: manages roles
- Browser user → Home pages: browses
- API client → API account: requests login
- API client → Section API: requests sections
- Web account → Account service: delegates
MyPastelitos.Web/Controllers/AccountController.cs - API account → Account service: delegates
MyPastelitos.Web/Controllers/Api/AccountController.cs - API account → API responses: uses responses
MyPastelitos.Web/Controllers/Api/AccountController.cs - Section API → API responses: uses responses
MyPastelitos.Web/Controllers/Api/SectionsController.cs - User management → Users service: delegates
MyPastelitos.Web/Controllers/UsersController.cs - Section management → Section service: delegates
MyPastelitos.Web/Controllers/SectionsController.cs - Section API → Section service: delegates
MyPastelitos.Web/Controllers/Api/SectionsController.cs - Role management → Roles service: delegates
MyPastelitos.Web/Controllers/RolesController.cs - Account service → Application data: reads and writes
MyPastelitos.Web/Services/Implementations/AccountService.cs - Users service → Application data: reads and writes
MyPastelitos.Web/Services/Implementations/UsersService.cs - Home service → Application data: queries
MyPastelitos.Web/Services/Implementations/HomeService.cs - Roles service → Application data: reads and writes
MyPastelitos.Web/Services/Implementations/RolesService.cs - Home service → Query operations: uses queries
MyPastelitos.Web/Services/Implementations/HomeService.cs - Roles service → Query operations: uses queries
MyPastelitos.Web/Services/Implementations/RolesService.cs - Query operations → Application data: queries and saves
MyPastelitos.Web/Services/CustomQueryableOperationsService.cs - Application data → User records: maps identity
MyPastelitos.Web/Data/DataContext.cs - Application data → Section records: stores
MyPastelitos.Web/Data/DataContext.cs - Application data → Recipe records: stores
MyPastelitos.Web/Data/DataContext.cs - Application data → Private roles: stores
MyPastelitos.Web/Data/DataContext.cs - Application data → Permissions: stores
MyPastelitos.Web/Data/DataContext.cs - Application data → Role permissions: stores
MyPastelitos.Web/Data/DataContext.cs - Application data → Role permissions: keys and relations
MyPastelitos.Web/Data/DataContext.cs - Recipe endpoints → Recipe service: delegates
- Home pages → Home service: delegates
- Authorization rules → Account service: checks access