# PaymentController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Sales/PaymentController.cs` (line 14)

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

## Where it refuses work

- `PaymentController` stops the work with an early return when `item.PaymentID == 0`, in 2 places.
- `PaymentController` stops the work with an early return when `item == null || item.PaymentID == 0`.
- `PaymentController` stops the work with an early return when `paymentId <= 0`.

## Relationships

- MODULE_DECLARES → `GetAll`
- MODULE_DECLARES → `GetAllPaymentReceivingMethods`
- MODULE_DECLARES → `GetPaymentsByInvoiceId`
- MODULE_DECLARES → `GetPaymentsByJobId`
- MODULE_DECLARES → `GetPaymentList`
- MODULE_DECLARES → `GetPaymentsForDisplay`
- MODULE_DECLARES → `GetByID`
- MODULE_DECLARES → `Save`
- MODULE_DECLARES → `UnallocatePayment`
- IMPORTS → `BaseController`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `GetAll`
- IMPORTS → `DomainException`
- IMPORTS → `ListQueryParameters`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- 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
