How raypatron/autodetailcrm works
AutoDetailCrm is an auto-detailing CRM API for managing service orders and mechanic accounts. The main workflow accepts order data, turns it into customer, vehicle, service, and order entities, persists it, and returns a record-shaped response; reads convert stored orders back into records. Authentication and mechanic administration are separate capabilities. The excerpts show controller-to-context and identity-manager usage; the frontend tree is present but has no sampled source, so its behavior is not mapped.
Main entry points: ServiceOrdersController.cs Order endpoints · ApplicationDbContext.cs EF context · Program.cs API startup · AuthenticationController.cs Login endpoint
Components 15
API runtime
- API startup
AutoDetailCrm.Api/Program.cs - Order endpoints
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Login endpoint
AutoDetailCrm.Api/Controllers/AuthenticationController.cs - Mechanic endpoints
AutoDetailCrm.Api/Controllers/UsersController.cs
Service orders
- Order record DTO
AutoDetailCrm.Api/Entities/Record.cs - Customer
AutoDetailCrm.Api/Entities/Customer.cs - Vehicle
AutoDetailCrm.Api/Entities/Vehicle.cs - Service order
AutoDetailCrm.Api/Entities/ServiceOrder.cs - Order services
AutoDetailCrm.Api/Entities/Service.cs
Identity management
- Application user
AutoDetailCrm.Api/Entities/ApplicationUser.cs - Role seeder
AutoDetailCrm.Api/Data/IdentitySeeder.cs - ASP.NET Identity
Persistence
- EF context
AutoDetailCrm.Api/Data/ApplicationDbContext.cs - PostgreSQL database
Other components
- API client
Connections 21
- API client → Order endpoints: requests orders
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - API client → Login endpoint: submits login
AutoDetailCrm.Api/Controllers/AuthenticationController.cs - API client → Mechanic endpoints: manages mechanics
AutoDetailCrm.Api/Controllers/UsersController.cs - API startup → EF context: registers context
AutoDetailCrm.Api/Program.cs - API startup → Role seeder: runs seeding
AutoDetailCrm.Api/Program.cs - API startup → PostgreSQL database: configures PostgreSQL
AutoDetailCrm.Api/Program.cs - Order endpoints → EF context: reads and writes
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Order endpoints → Order record DTO: converts records
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Order endpoints → Customer: creates and updates
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Order endpoints → Vehicle: creates and updates
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Order endpoints → Service order: creates and updates
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Order endpoints → Order services: maps services
AutoDetailCrm.Api/Controllers/ServiceOrdersController.cs - Login endpoint → ASP.NET Identity: authenticates user
AutoDetailCrm.Api/Controllers/AuthenticationController.cs - Mechanic endpoints → ASP.NET Identity: manages accounts
AutoDetailCrm.Api/Controllers/UsersController.cs - Role seeder → ASP.NET Identity: creates roles
AutoDetailCrm.Api/Data/IdentitySeeder.cs - API startup → ASP.NET Identity: registers Identity
AutoDetailCrm.Api/Program.cs - EF context → Customer: maps entity
AutoDetailCrm.Api/Data/ApplicationDbContext.cs - EF context → Vehicle: maps entity
AutoDetailCrm.Api/Data/ApplicationDbContext.cs - EF context → Service order: maps entity
AutoDetailCrm.Api/Data/ApplicationDbContext.cs - EF context → Order services: maps entity
AutoDetailCrm.Api/Data/ApplicationDbContext.cs - EF context → Application user: stores identity
AutoDetailCrm.Api/Data/ApplicationDbContext.cs