# AuditController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Security/AuditController.cs` (line 21)

**Part of:** [Pams](subsystem-pams)

## Where it refuses work

- `AuditController` stops the work with an early return when `!ModelState.IsValid`.

## When something fails

- `AuditController` handles failure in 4 places: it turns it into a return value in all 4.

## Relationships

- MODULE_DECLARES → `GetByBranchID`
- MODULE_DECLARES → `GetByID`
- MODULE_DECLARES → `GetAll`
- MODULE_DECLARES → `GetAllSalesJobs`
- MODULE_DECLARES → `GetAllSalesJobs`
- IMPORTS → `BaseController`
- IMPORTS → `Audit`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `AuditBindingModel`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `AuditLogFiltersBindingModel`
- IMPORTS → `UserLogFilterBindingModel`
- IMPORTS → `UserExportBindingModel`

## Used by

4 references from 4 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### calls by (4)

- `EnahnceLoginResponse` — `Frontend/src/app/services/security/auth.service.ts`:1
- `PageData` — `Pams/Web/Pams.Web/Client/app/services/security/auth.service.ts`:1
- `AppSettings` — `Frontend/src/app/settings/app/app.settings.ts`:241
- `AppSettings` — `Pams/Web/Pams.Web/Client/app/settings/app/app.settings.ts`:126
