Skip to content

ProjectStatusController

reference
1 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Sales/ProjectStatusController.cs (line 21)

Part of: Pams

Where it refuses work

  • ProjectStatusController stops the work with an early return when !success, in 3 places.
  • ProjectStatusController stops the work with an early return when !ModelState.IsValid, in 2 places.
  • ProjectStatusController stops the work with an early return when stl.Exists(CompanyID, model.ProjectStatusID, model.Name), in 2 places.
  • ProjectStatusController stops the work with an early return when !item.HasObject.
  • ProjectStatusController stops the work with an early return when msArr == null || !msArr.Any().
  • ProjectStatusController stops the work with an early return when !stl.AddRange(ClientTypesTobeInserted).

When something fails

  • ProjectStatusController handles failure in 17 places: it turns it into a return value in all 17.

Relationships

  • MODULE_DECLARES → GetAll
  • MODULE_DECLARES → GetLookup
  • MODULE_DECLARES → insert
  • MODULE_DECLARES → update
  • 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 → ProjectStatus
  • IMPORTS → ProjectStatus
  • IMPORTS → ProjectStatusBindingModel
  • IMPORTS → GetLookup
  • IMPORTS → CacheClearFilter
  • IMPORTS → Save
  • 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 → Import
  • IMPORTS → GetSheet
  • IMPORTS → GetSheet
  • IMPORTS → ProjectStatusImportModel
  • IMPORTS → PostedFile
  • IMPORTS → ProjectStatusImportModelList
  • IMPORTS → Create

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