# CurrencyController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Common/CurrencyController.cs` (line 20)

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

## Where it refuses work

- `CurrencyController` stops the work with an early return when `string.IsNullOrEmpty(fromCurrency) || string.IsNullOrEmpty(toCurrency)`.
- `CurrencyController` stops the work with an early return when `fromCurrency == 0 || toCurrency == 0`.

## When something fails

- `CurrencyController` handles failure in 3 places: it turns it into a return value in all 3.

## Relationships

- MODULE_DECLARES → `GetPricePercentage`
- IMPORTS → `Currency`
- IMPORTS → `BaseController`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `Person`
- IMPORTS → `CompanyCurrency`

## Used by

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

### Imported by (1)

- `InquiryController` — `Pams/API/Pams.API/Controllers/Sales/InquiryController.cs`:48

### calls by (5)

- `BillOfMaterialsService` — `Frontend/src/app/components/bill-of-materials/bill-of-materials.service.ts`:1
- `CurrencyService` — `Pams/Web/Pams.WebApp/Client/app/services/common/currency.service.ts`:1
- `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
