# VisitPurposeController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Tasks/Activities/VisitPurposeController.cs` (line 11)

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

## Where it refuses work

- `VisitPurposeController` stops the work with an early return when `item == null`, in 2 places.
- `VisitPurposeController` stops the work with an early return when `!ModelState.IsValid`.
- `VisitPurposeController` stops the work with an early return when `domain.IsExist(model.VisitPurposeId, CompanyID, model.Description)`.
- `VisitPurposeController` stops the work with an early return when `success`.

## Relationships

- MODULE_DECLARES → `GetByID`
- MODULE_DECLARES → `GetLookup`
- MODULE_DECLARES → `GetAll`
- MODULE_DECLARES → `Save`
- MODULE_DECLARES → `Delete`
- IMPORTS → `Activities`
- IMPORTS → `VisitPurposeBindingModel`
- IMPORTS → `DeleteDto`

## 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
