Skip to content

PaymentMethodController

reference
3 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Common/PaymentMethodController.cs (line 21)

Part of: Pams

Where it refuses work

  • PaymentMethodController stops the work with an early return when success, in 2 places.
  • PaymentMethodController stops the work with an early return when !logic.IsFound(ID, CompanyID).
  • PaymentMethodController stops the work with an early return when !ModelState.IsValid.
  • PaymentMethodController stops the work with an early return when logic.Exists(CompanyID, model.PaymentMethodID, model.Name).
  • PaymentMethodController stops the work with an early return when !logic.IsFound(CompanyID, ID).
  • PaymentMethodController stops the work with an early return when sourceElements == null || sourceElements.ImportModels == null || !sourceElements.ImportMo….

When something fails

  • PaymentMethodController handles failure in 5 places: it turns it into a return value in all 5.

Relationships

  • MODULE_DECLARES → GetByID
  • MODULE_DECLARES → GetByCompanyID
  • MODULE_DECLARES → GetAll
  • MODULE_DECLARES → GetLookup
  • MODULE_DECLARES → Save
  • MODULE_DECLARES → Delete
  • MODULE_DECLARES → GetSheet
  • MODULE_DECLARES → Import
  • IMPORTS → PaymentMethod
  • IMPORTS → BaseController
  • IMPORTS → GetByID
  • IMPORTS → GetByID
  • IMPORTS → GetByID
  • IMPORTS → GetByID
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • 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 → 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 → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → GetLookup
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → PaymentMethodBindingModel
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → DeleteDto
  • IMPORTS → CacheClearFilter
  • IMPORTS → GetSheet
  • IMPORTS → GetSheet
  • IMPORTS → PaymentMethodImportModel
  • IMPORTS → PostedFile
  • IMPORTS → PaymentMethodImportModelList

Used by

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

calls by (4)

  • PaymentMethodServicePams/Web/Pams.WebApp/Client/app/services/common/payment-method.service.ts:1
  • AppSettingsFrontend/src/app/settings/app/app.settings.ts:241
  • AppSettingsPams/Web/Pams.Web/Client/app/settings/app/app.settings.ts:126
  • AppSettingsPams/Web/Pams.WebApp/Client/app/settings/app/app.settings.ts:6

Was this page helpful?

Download as PDF