Skip to content

CategoryController

reference
2 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Common/CategroyController.cs (line 15)

Part of: Pams

Where it refuses work

  • CategoryController stops the work with an early return when success, in 2 places.
  • CategoryController stops the work with an early return when !ModelState.IsValid.
  • CategoryController stops the work with an early return when logic.Exists(CompanyID, model.Id, model.CategoryName, model.ParentId).
  • CategoryController stops the work with an early return when !logic.IsFound(CompanyID, ID).
  • CategoryController stops the work with an early return when logic.HasChilds(CompanyID, ID).

Relationships

  • MODULE_DECLARES → GetByID
  • MODULE_DECLARES → GetAll
  • MODULE_DECLARES → GetLookup
  • MODULE_DECLARES → GetLookupTree
  • MODULE_DECLARES → Save
  • MODULE_DECLARES → Delete
  • MODULE_DECLARES → GetSheet
  • 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 → GetLookupTree
  • 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 → CategoryBindingModel
  • 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 → GetSheet
  • IMPORTS → GetSheet
  • IMPORTS → Import
  • IMPORTS → CategoryImportModel

Used by

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

calls by (7)

  • ProductCategoryServiceFrontend/src/app/services/common/product-category.service.ts:1
  • ProductCategoryServicePams/Web/Pams.Web/Client/app/services/common/product-category.service.ts:1
  • CategoryServicePams/Web/Pams.WebApp/Client/app/services/common/category.service.ts:1
  • ProductCategoryServicePams/Web/Pams.WebApp/Client/app/services/common/product-category.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