How alicancnrk0/pa.companymanagement works
This repository is a company-management application composed of employee, accounting, notification, user, gateway, and web-UI projects. The clearest user-to-result workflow is employee management: a user acts through the WebUI, whose HTTP client calls the employee REST API; its controller delegates employee operations to a repository backed by an EF context. Accounting exposes income, expense, and their types; notifications expose message operations. The tree also shows gRPC entry points, but their runtime behavior and service wiring are not established by the excerpts. Evidence is limited to the README (empty), source index, and sampled files.
Main entry points: Program.cs Accounting REST API · EmployeeRepository.cs Employee repository · ExpenseRepository.cs Expense repository · MessageRepository.cs Message repository
Components 24
Web experience
- Web UI
PA.CompanyManagement.WebUI/Program.cs - Employee HTTP client
PA.CompanyManagement.WebUI/Clients/Employee/EmployeeApiClient.cs
Employee service
- Employee REST API
PA.CompanyManagement.EmployeeService.Api.Rest/Controllers/EmployeesController.cs - Employee repository
PA.CompanyManagement.EmployeeService.Infrastructure/Repositories/EmployeeRepository.cs - Employee data context
PA.CompanyManagement.EmployeeService.Infrastructure/Contexts/EmployeeDbContext.cs - Employee records
PA.CompanyManagement.EmployeeService.Domain/Entities/Employee.cs
Accounting service
- Accounting REST API
PA.CompanyManagement.AccountingService.Api.Rest/Program.cs - Expense operations
PA.CompanyManagement.AccountingService.Api.Rest/Controllers/Metas/ExpenseController.cs - Income operations
PA.CompanyManagement.AccountingService.Api.Rest/Controllers/Metas/IncomeController.cs - Expense types
PA.CompanyManagement.AccountingService.Api.Rest/Controllers/Types/ExpenseTypesController.cs - Income types
PA.CompanyManagement.AccountingService.Api.Rest/Controllers/Types/IncomeTypesController.cs - Expense repository
PA.CompanyManagement.AccountingService.Infrastructure/Repositories/Metas/ExpenseRepository.cs - Income repository
PA.CompanyManagement.AccountingService.Infrastructure/Repositories/Metas/IncomeRepository.cs - Expense-type repository
PA.CompanyManagement.AccountingService.Infrastructure/Repositories/Types/ExpenseTypeRepository.cs - Income-type repository
PA.CompanyManagement.AccountingService.Infrastructure/Repositories/Types/IncomeTypeRepository.cs - Accounting data context
PA.CompanyManagement.AccountingService.Infrastructure/Contexts/AccountingDbContext.cs
Notification service
- Message REST API
PA.CompanyManagement.NotificationService.Api.Rest/Controllers/MessagesController.cs - Message repository
PA.CompanyManagement.NotificationService.Infrastructure/Repositories/MessageRepository.cs - Notification data context
PA.CompanyManagement.NotificationService.Infrastructure/Contexts/NotificationDbContext.cs - Message records
PA.CompanyManagement.NotificationService.Domain/Entities/Message.cs
Shared and entry points
- Gateway
PA.CompanyManagement.Gateway/Program.cs - gRPC endpoints
PA.CompanyManagement.EmployeeService.Api.Grpc/Program.cs - Shared data exceptions
PA.CompanyManagement.Core/Exceptions/PAContextQueryException.cs
Other components
- Application user
Connections 22
- Application user → Web UI: uses
- Web UI → Employee HTTP client: configures
PA.CompanyManagement.WebUI/Program.cs - Employee HTTP client → Employee REST API: sends HTTP requests
PA.CompanyManagement.WebUI/Clients/Employee/EmployeeApiClient.cs - Employee REST API → Employee repository: delegates operations
PA.CompanyManagement.EmployeeService.Api.Rest/Controllers/EmployeesController.cs - Employee repository → Employee data context: queries and saves
PA.CompanyManagement.EmployeeService.Infrastructure/Repositories/EmployeeRepository.cs - Employee repository → Employee records: maps records
PA.CompanyManagement.EmployeeService.Infrastructure/Repositories/EmployeeRepository.cs - Accounting REST API → Expense operations: maps controllers
- Accounting REST API → Income operations: maps controllers
- Accounting REST API → Expense types: maps controllers
- Accounting REST API → Income types: maps controllers
- Accounting REST API → Expense repository: registers repository
PA.CompanyManagement.AccountingService.Api.Rest/Program.cs - Accounting REST API → Income repository: registers repository
PA.CompanyManagement.AccountingService.Api.Rest/Program.cs - Accounting REST API → Expense-type repository: registers repository
PA.CompanyManagement.AccountingService.Api.Rest/Program.cs - Accounting REST API → Income-type repository: registers repository
PA.CompanyManagement.AccountingService.Api.Rest/Program.cs - Expense operations → Expense repository: delegates operations
- Income operations → Income repository: delegates operations
PA.CompanyManagement.AccountingService.Api.Rest/Controllers/Metas/IncomeController.cs - Expense repository → Accounting data context: queries and saves
PA.CompanyManagement.AccountingService.Infrastructure/Repositories/Metas/ExpenseRepository.cs - Message REST API → Message repository: delegates operations
PA.CompanyManagement.NotificationService.Api.Rest/Controllers/MessagesController.cs - Message repository → Notification data context: uses context
PA.CompanyManagement.NotificationService.Infrastructure/Repositories/MessageRepository.cs - Message repository → Message records: maps records
PA.CompanyManagement.NotificationService.Infrastructure/Repositories/MessageRepository.cs - Employee repository → Shared data exceptions: raises errors
PA.CompanyManagement.EmployeeService.Infrastructure/Repositories/EmployeeRepository.cs - Expense repository → Shared data exceptions: raises errors
PA.CompanyManagement.AccountingService.Infrastructure/Repositories/Metas/ExpenseRepository.cs