# DashboardController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/DashBoard/DashboardController.cs` (line 15)

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

## Where it refuses work

- `DashboardController` stops the work with an early return when `!ModelState.IsValid`, in 4 places.
- `DashboardController` stops the work with an early return when `!success`, in 3 places.
- `DashboardController` stops the work with an early return when `!ms.HasObject`.

## When something fails

- `DashboardController` handles failure in 6 places: it turns it into a return value in all 6.

## Relationships

- MODULE_DECLARES → `GetAll`
- MODULE_DECLARES → `GetByID`
- MODULE_DECLARES → `Insert`
- MODULE_DECLARES → `Update`
- MODULE_DECLARES → `Save`
- MODULE_DECLARES → `Delete`
- IMPORTS → `Dashboard`
- IMPORTS → `BaseController`
- IMPORTS → `GetAll`
- IMPORTS → `GetByID`
- IMPORTS → `Insert`
- IMPORTS → `Save`
- IMPORTS → `Update`
- IMPORTS → `Delete`

## Used by

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

### calls by (5)

- `MRMCashFlowForecasted` — `Frontend/src/app/services/dashboard/dashboard-library.service.ts`:1
- `CachingWidgetData` — `Pams/Web/Pams.Web/Client/app/services/dashboard/dashboard-library.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
- `AppSettings` — `Pams/Web/Pams.WebApp/Client/app/settings/app/app.settings.ts`:6
