# JobGuaranteesController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Sales/JobGuaranteesController.cs` (line 24)

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

## Where it refuses work

- `JobGuaranteesController` stops the work with an early return when `!success`, in 3 places.
- `JobGuaranteesController` stops the work with an early return when `!ModelState.IsValid`, in 2 places.
- `JobGuaranteesController` stops the work with an early return when `!item.HasObject`.
- `JobGuaranteesController` stops the work with an early return when `count > 0`.
- `JobGuaranteesController` stops the work with an early return when `jobGuarantee==null || !jobGuarantee.HasObject`.

## When something fails

- `JobGuaranteesController` handles failure in 12 places: it turns it into a return value in all 12.

## Relationships

- MODULE_DECLARES → `GetByInquiryNumber`
- MODULE_DECLARES → `GetByInquiryNumberTypeID`
- MODULE_DECLARES → `Delete`
- MODULE_DECLARES → `Insert`
- MODULE_DECLARES → `Update`
- IMPORTS → `JobGuarantees`
- IMPORTS → `BaseController`
- IMPORTS → `JobGuaranteesBindingModel`
- IMPORTS → `TimePeriod`
- IMPORTS → `TimePeriodBindingModel`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Insert`
- IMPORTS → `Insert`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Update`
- IMPORTS → `Update`
- IMPORTS → `Update`

## Used by

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

### calls by (3)

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