# PrincipalTargetController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/BookingTarget/PrincipalTargetController.cs` (line 11)

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

## Where it refuses work

- `PrincipalTargetController` stops the work with an early return when `!isFound`, in 2 places.
- `PrincipalTargetController` stops the work with an early return when `isSaved == Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 2 places.
- `PrincipalTargetController` stops the work with an early return when `isFound`.

## Relationships

- MODULE_DECLARES → `GetById`
- MODULE_DECLARES → `GetPrincipalsTargetByYear`
- MODULE_DECLARES → `SavePrincipalTarget`
- MODULE_DECLARES → `CreatePrincipalTargetForNewYear`
- IMPORTS → `BaseController`
- IMPORTS → `GetById`
- IMPORTS → `GetById`
- IMPORTS → `GetById`
- IMPORTS → `PrincipalBookingTarget`

## Used by

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

### calls by (2)

- `AppSettings` — `Frontend/src/app/settings/app/app.settings.ts`:241
- `AppSettings` — `Pams/Web/Pams.Web/Client/app/settings/app/app.settings.ts`:126
