# CategoryController

**Kind:** Controller

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

**Part of:** [Pams](subsystem-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)

- `ProductCategoryService` — `Frontend/src/app/services/common/product-category.service.ts`:1
- `ProductCategoryService` — `Pams/Web/Pams.Web/Client/app/services/common/product-category.service.ts`:1
- `CategoryService` — `Pams/Web/Pams.WebApp/Client/app/services/common/category.service.ts`:1
- `ProductCategoryService` — `Pams/Web/Pams.WebApp/Client/app/services/common/product-category.service.ts`:1
- `AppSettings` — `Frontend/src/app/settings/app/app.settings.ts`:241
- `AppSettings` — `Pams/Web/Pams.Web/Client/app/settings/app/app.settings.ts`:126
- `AppSettings` — `Pams/Web/Pams.WebApp/Client/app/settings/app/app.settings.ts`:6
