Skip to content

ClientTypeController

reference
3 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Common/ClientTypeController.cs (line 19)

Part of: Pams

Where it refuses work

  • ClientTypeController stops the work with an early return when success, in 2 places.
  • ClientTypeController stops the work with an early return when !ModelState.IsValid.
  • ClientTypeController stops the work with an early return when logic.Exists(CompanyID, model.ClientTypeID, model.ClientTypeName).
  • ClientTypeController stops the work with an early return when !logic.IsFound(CompanyID, ID).
  • ClientTypeController stops the work with an early return when msArr == null || !msArr.Any().
  • ClientTypeController stops the work with an early return when !logic.AddRange(ClientTypesTobeInserted).

When something fails

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

Relationships

  • MODULE_DECLARES → GetAll
  • MODULE_DECLARES → GetLookup
  • MODULE_DECLARES → Save
  • MODULE_DECLARES → delete
  • MODULE_DECLARES → GetSheet
  • MODULE_DECLARES → import
  • 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 → 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 → GetById
  • IMPORTS → GetById
  • IMPORTS → GetById
  • 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 → 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 → AccountTypeBindingModel
  • 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 → Delete
  • IMPORTS → DeleteDto
  • IMPORTS → Import
  • IMPORTS → GetSheet
  • IMPORTS → GetSheet
  • IMPORTS → AccountTypeImportModel
  • IMPORTS → CacheClearFilter
  • IMPORTS → AccountType
  • IMPORTS → PostedFile
  • IMPORTS → AccountTypeImportModelList

Used by

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

calls by (3)

  • 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