# LetterOfGuaranteeController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/LG/LetterOfGuaranteeController.cs` (line 9)

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

## Where it refuses work

- `LetterOfGuaranteeController` stops the work with an early return when `isSaved != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 5 places.
- `LetterOfGuaranteeController` stops the work with an early return when `isDeleted != Business.Entity.EnumNewSales.EnumReturnMessage.DeletedSuccessfuly`, in 4 places.
- `LetterOfGuaranteeController` stops the work with an early return when `!logic.IsFound(model.LGId)`, in 3 places.
- `LetterOfGuaranteeController` stops the work with an early return when `!isFound`.
- `LetterOfGuaranteeController` stops the work with an early return when `!logic.IsFound(model.Id)`.
- `LetterOfGuaranteeController` stops the work with an early return when `!logic.IsLGDeductionFound(CompanyBranchID, model.ID)`.

## Relationships

- MODULE_DECLARES → `GetById`
- MODULE_DECLARES → `GetLGslookup`
- MODULE_DECLARES → `GetAllLGs`
- MODULE_DECLARES → `GetAllLGsGrouped`
- MODULE_DECLARES → `GetAllLGsFunnel`
- MODULE_DECLARES → `Save`
- MODULE_DECLARES → `UpgradLgType`
- MODULE_DECLARES → `SaveDeduction`
- MODULE_DECLARES → `SaveExtension`
- MODULE_DECLARES → `SaveIncrease`
- MODULE_DECLARES → `DeleteDeduction`
- MODULE_DECLARES → `DeleteExtension`
- MODULE_DECLARES → `DeleteIncrease`
- MODULE_DECLARES → `DeleteLG`
- IMPORTS → `BaseController`
- IMPORTS → `LetterOfGuaranteeBindingModel`
- IMPORTS → `LGDeductionBindingModel`
- IMPORTS → `LGExtensionBindingModel`
- IMPORTS → `LGIncreaseBindingModel`
- 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
