# DashboardCreatorController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/DashBoard/DashboardCreatorController.cs` (line 11)

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

## Where it refuses work

- `DashboardCreatorController` stops the work with an early return when `isSaved != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 3 places.
- `DashboardCreatorController` stops the work with an early return when `!domain.IsAdminDashboardFound(CompanyID, id)`.
- `DashboardCreatorController` stops the work with an early return when `!domain.IsUserCustomDashboardFound(CompanyID, userId)`.
- `DashboardCreatorController` stops the work with an early return when `userId != PersonUserID`.
- `DashboardCreatorController` stops the work with an early return when `!domain.IsUserCustomDashboardFound(CompanyID, id)`.
- `DashboardCreatorController` stops the work with an early return when `!domain.IsAdminDashboardFound(CompanyID, model.Id)`.

## Relationships

- MODULE_DECLARES → `GetDashboardPreparedByAdmin`
- MODULE_DECLARES → `GetDashboardPreparedByAdminById`
- MODULE_DECLARES → `GetDashboardPreparedByUser`
- MODULE_DECLARES → `GetDashboardByUser`
- MODULE_DECLARES → `GetDashboardPreparedByUserById`
- MODULE_DECLARES → `SaveDashboardPreparedByAdmin`
- MODULE_DECLARES → `SaveDashboardPreparedByUser`
- MODULE_DECLARES → `ChangeActiveDashboardPreparedByUser`
- MODULE_DECLARES → `ChangeActiveDashboardPreparedByAdminForUser`
- MODULE_DECLARES → `SaveLatestModifications`
- IMPORTS → `BaseController`
- IMPORTS → `RoleUserDashboardBindingModel`
- IMPORTS → `SaveDashboardPreparedByUser`
- IMPORTS → `SaveLatestModifications`
- IMPORTS → `DashboarModificationsdBindingModel`
