Customer Relationship Management — Complete Source Code
A production-ready CRM application to manage contacts, companies, sales pipeline, leads, and customer relationships. Built with .NET 10, ASP.NET Core, Blazor Web App (interactive server), MudBlazor and Vertical Slice Architecture — V4 adds multi-branch scoping, plain CQRS handlers wired to Minimal API endpoints, and three database providers.

The V4 upgrade keeps every business module and adds multi-branch operations on a completely rebuilt application architecture.
Organize records per branch. A protected Head Office branch is seeded on startup, forms expose a Branch selector, lists show a searchable Branch column, and 32 entity classes are branch-scoped — deleting a branch that is in use is blocked.
Every operation is a plain handler class with a single HandleAsync(). Blazor pages resolve handlers through HandlerInvoker with a fresh DI scope per call, while Minimal API endpoints inject the same handler directly. No dispatcher, no pipeline magic.
The HTTP surface is rebuilt as one Minimal API group per feature (/api/{entity}): paginated lists, /export, /{id}/items, /{lookup}-lookup and create/update/soft-delete routes — all documented in Swagger/OpenAPI.
Short-lived access tokens with SHA-256 hashed refresh tokens and rotation, Identity cookies for the Blazor circuit, and optional Google sign-in via Firebase SSO.
InMemory (zero-config), SQL Server and PostgreSQL ship in the box — switch with a single IsUsed toggle in appsettings.json; the database is auto-created and seeded on startup.
Hangfire jobs and dashboard, Serilog logging, health checks, an Admin Ops metrics dashboard, OpenTelemetry (OTLP) export and four rate-limiting policies.
Every business needs to manage customer relationships — but fragmented tools, manual tracking, and disconnected data cost time and revenue.
Sales teams store contacts in spreadsheets, email inboxes, and personal notes. No central source of truth means missed follow-ups, duplicate entries, and lost opportunities. Blazor CRM centralizes all contact, company, and deal data in one searchable, organized system with complete history tracking.
Without a structured pipeline, managers cannot forecast revenue or identify bottlenecks. Deals get stuck without anyone noticing. Blazor CRM provides a visual sales pipeline with deal stages (Prospecting, Qualification, NeedAnalysis, Proposal, Negotiation, DecisionMaking, Closed), with closing status ClosedWon / ClosedLost, so you always know where every deal stands.
Critical follow-ups slip through the cracks when there is no logging system. Blazor CRM tracks every activity — calls, emails, meetings, notes — and links them to contacts and deals. Complete activity timeline for every customer relationship.
Without dashboards and reports, management flies blind. Blazor CRM includes KPI dashboards with charts and summary cards showing pipeline value, win rate, conversion metrics, and sales performance — all powered by EF Core aggregation queries.
Complete end-to-end business features — every module is a complete vertical slice with Blazor pages, a plain CQRS handler, a FluentValidation validator, a Minimal API endpoint and EF Core queries.
Personal Info, Password, Avatar, Session
CRM Dashboard, Campaign, Budget, Expense, Lead, Lead Contacts, Lead Activities, Sales Team, Sales Representative, Todo, Todo Dashboard
Customer Group, Customer Category, Customer, Customer Contact, Vendor Group, Vendor Category, Vendor, Vendor Contact
Sales Quotation, Sales Order, Delivery Order, Sales Return, Credit Note, Invoice, Payment Receive — lists export to XLSX, Detail pages print to PDF
Purchase Requisition, Purchase Order, Goods Receive, Purchase Return, Debit Note, Bill, Payment Disburse — lists export to XLSX, Detail pages print to PDF
Unit Measure, Product Group, Product, Warehouse, Transfer Out, Transfer In, Positive/Negative Adjustment, Scrapping, Stock Count, Transaction Report, Stock Report, Movement Report
Booking Group, Booking Resource, Booking, Program Manager, Program Resource, Payment Method
Health Check, Serilog logs, System File — plus the Hangfire dashboard at /hangfire
Users, Roles, Tax, Country, Currency, Auto Number, Company, Branch
full inspection mode for appsettings.json
ChatGPT / Claude / Gemini / DeepSeek (optional, bring your own API key)
Blazor CRM is built on the modern .NET ecosystem with production-grade libraries and tools.
| Layer | Technology |
|---|---|
| Framework | .NET 10 |
| Web Framework | ASP.NET Core 10 |
| UI Rendering | Blazor Web App — Interactive Server render mode (SignalR circuit) |
| UI Component Library | MudBlazor (Material Design components for Blazor) |
| UI Assets | SheetJS (Excel export), jsPDF (PDF print), ECharts (dashboards) |
| Architecture Pattern | Vertical Slice Architecture (VSA) via ASP.NET Core Areas + CQRS plain handlers (no MediatR) |
| API Style | Per-feature Minimal API groups (/api/{entity}) with Swagger/OpenAPI |
| Data Access | Entity Framework Core 10 — code-first, auto-create on startup, DataTable paging/search/sort helpers |
| Database | InMemory (zero-config) / SQL Server / PostgreSQL — toggle IsUsed in appsettings.json |
| Branch Scope | IHasBranch + BranchId — 32 branch-scoped entities, protected Head Office branch |
| Validation | FluentValidation |
| Authentication | ASP.NET Core Identity + JWT access/refresh token rotation + Firebase SSO (Google) |
| Authorization | Role-based (Guest / Member / Admin + per-area roles) + rate-limited endpoint policies |
| Real-Time | SignalR circuit (Blazor Web App interactive server mode) |
| Background Jobs | Hangfire — dashboard at /hangfire, recurring jobs (daily log cleanup) |
| MailKit — SendGrid / Mailgun / SMTP / Mailjet (switch via appsettings.json) | |
| Logging | Serilog — rolling files, optional database sink and Seq, 3-day auto cleanup |
| Observability | Health checks (/health/live, /health/ready) + Admin Ops metrics dashboard + OpenTelemetry (OTLP) |
| AI Chat | Optional AI assistant — ChatGPT / Claude / Gemini / DeepSeek (provider + API key) |
Blazor CRM uses Vertical Slice Architecture (VSA) with plain CQRS handlers wired directly into per-feature Minimal API endpoints — no MediatR dependency, and the modern, maintainable approach to building .NET applications.
Each feature (Lead, Campaign, Sales Order, Product, etc.) lives in its own folder under ASP.NET Core Areas with its Blazor pages, feature components, plain CQRS handlers, validators, and Minimal API endpoint all in one place. Zero coupling between features. Add a feature without touching unrelated code.
Folder structure: Areas/Main/Lead/ contains Pages/, Components/, Cqrs/, Endpoints/, and the entity fields definition — everything for that feature.
Commands (writes) and queries (reads) are separated into single-purpose handler classes — CreateLeadHandler, GetCustomerListHandler, GetInvoiceExportHandler. Every handler exposes one HandleAsync() method and returns ApiResponse<T>. There is no MediatR dependency and no pipeline magic: Minimal API endpoints inject the handler directly, while Blazor pages call the same handler through HandlerInvoker with a fresh DI scope per call. Read-only dashboards use EF Core AsNoTracking().
Example: GetCustomerListHandler receives a DataTableRequest (paging, search, sort) and returns ApiResponse<T>; CreateLeadHandler validates with FluentValidation then saves via EF Core.
The entire application — Blazor UI, REST API, business logic, data access, and authentication — lives in one .NET 10 project. No distributed complexity, no microservice overhead. Single F5 to run. Deploy as one unit to Azure, IIS, or Docker. Perfect for teams that value simplicity and velocity.
Indotalent/
├── Areas/
│ ├── Main/ # CRM dashboard, lead management, campaigns
│ │ ├── CrmDashboard/ # KPI dashboard (ECharts)
│ │ ├── Lead/ # Lead + Lead Contact + Lead Activity
│ │ ├── Campaign/ Budget/ Expense/
│ │ ├── SalesTeam/ SalesRepresentative/
│ │ └── Todo/ TodoDashboard/
│ ├── ThirdParty/ # Customer, Vendor + categories, groups, contacts
│ ├── Sales/ # Quotation, Order, Delivery, Return, Credit Note,
│ │ # Invoice, Payment Receive
│ ├── Purchase/ # Requisition, Order, Goods Receive, Return,
│ │ # Debit Note, Bill, Payment Disburse
│ ├── Inventory/ # Product, Warehouse, Transfer, Adjustment,
│ │ # Scrapping, Stock Count, Reports
│ ├── Utilities/ # Booking, Program Manager, Payment Method
│ ├── Admin/ # User, Role, Tax, Country, Currency, Auto Number,
│ │ │ # Company, Branch, Health Check, Serilog, System File
│ ├── AI/Chat/ # multi-provider AI chat (ChatGPT/Claude/Gemini/DeepSeek)
│ ├── Identity/ # Account pages (Login, Register, Manage)
│ ├── Public/ # Home + built-in Documentation
│ └── Blazor/ # App shell, layouts, HandlerInvoker, circuit services
├── Infrastructures/ # Auth, database, email, jobs, logging, OTel, rate limiting
├── Data/ # Entities, enums, seeders, Identity migration
├── Shared/ # ApiResponse, DataTable helpers, pagination
└── Program.cs # Single entry point with full configuration
Areas/Main/Lead/ # Feature folder convention (VSA)
├── Pages/ # Index / Create / Edit / Detail (.razor)
├── Components/ # feature-local dialogs and forms
├── Cqrs/ # GetList/GetById/Create/Update/Delete handlers + validators
├── Endpoints/ # LeadEndpoint.cs -> /api/lead
└── LeadFields.cs # entity field definitions
Security is baked into the architecture from the ground up — not bolted on as an afterthought.
Blazor CRM ships with a fully configured authentication and authorization system. ASP.NET Core Identity manages users and roles with secure password hashing. JWT access tokens with SHA-256 hashed refresh tokens and rotation protect the REST API, Identity cookies authenticate the Blazor circuit, and Firebase SSO (Google) is optional. Both schemes run simultaneously.
Role-based access control (RBAC) restricts features by user role: Guest, Member, and Admin, plus per-area roles (Main, Sales, Purchase, Inventory, ThirdParty, Utilities, AI). Every API group also runs behind rate-limiting policies (global, authenticated, write, admin), and policy-based authorization provides fine-grained control for sensitive operations.
With Blazor Web App (interactive server mode), source code and connection strings never leave the server. All data access happens server-side via SignalR — zero exposure of database credentials or business logic to the client.
Blazor CRM exposes a complete REST Web API for all entities — ready for mobile apps, third-party integrations, and external systems.
Every feature registers one Minimal API endpoint group. All endpoints are JWT-protected, role-authorized, rate-limited, and return an ApiResponse<T> envelope.
Every entity follows the same pattern — customer, vendor, lead, campaign, sales order, invoice, product, branch and more — with /export, /{id}/items and /{lookup}-lookup routes. Endpoints are registered per area via Map{Area}Endpoints().
/swagger/export endpoints feed client-side .xlsx download via SheetJS; Detail pages print to PDF via jsPDFThree database providers, auto-create and seed on startup, and flexible deployment options — ready to run in under 60 seconds.
Explore the Blazor CRM interface — dashboards, contact management, sales pipeline, and more.
Test every feature before you buy. No registration required.
IsUsed toggle in appsettings.json — the database is auto-created and seeded on startup.HandleAsync() and returning ApiResponse<T>, a FluentValidation validator, and a Minimal API endpoint group. Blazor pages call handlers through HandlerInvoker, while Minimal API endpoints inject them directly. This pattern is AI-friendly, beginner-friendly, and production-proven. Read our VSA Introduction./Admin/Branch. Deleting a branch that is in use is blocked.Complete, unrestricted C# source code. Single .NET 10 project.
or
Secure checkout via PayPal or LemonSqueezy. No subscription.
MVC EDevKit Basic is the MVC implementation of Vertical Slice Architecture — every feature lives in one self-contained folder with Controllers, CQRS handlers, per-feature Endpoints, and Razor Views.
