Skip to content

DeliveryTermController

reference
1 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Sales/DeliveryTermController.cs (line 19)

Part of: Pams

Where it refuses work

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

When something fails

  • DeliveryTermController handles failure in 1 place: it turns it into a return value in all 1.

Relationships

  • MODULE_DECLARES → GetLookup
  • MODULE_DECLARES → Get
  • MODULE_DECLARES → GetAll
  • MODULE_DECLARES → Save
  • MODULE_DECLARES → Delete
  • MODULE_DECLARES → GetSheet
  • MODULE_DECLARES → import
  • IMPORTS → DeliveryTerm
  • IMPORTS → BaseController
  • IMPORTS → GetLookup
  • IMPORTS → GetById
  • IMPORTS → GetById
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → GetAll
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → Save
  • IMPORTS → DeliveryTermBindingModel
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → Delete
  • IMPORTS → DeleteDto
  • IMPORTS → Import
  • IMPORTS → GetSheet
  • IMPORTS → GetSheet
  • IMPORTS → CacheClearFilter
  • IMPORTS → PostedFile
  • IMPORTS → DeliveryTermImportModelList
  • IMPORTS → Create

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)

  • DeliveryTermServicePams/Web/Pams.WebApp/Client/app/services/common/delivery-term.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