# CustomFieldController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/CustomField/CustomFieldController.cs` (line 15)

**Part of:** [Pams](subsystem-pams)

## Where it refuses work

- `CustomFieldController` stops the work with an early return when `isSaved`, in 2 places.
- `CustomFieldController` stops the work with an early return when `model.CustomFields == null || model.CustomFields.Count == 0`.
- `CustomFieldController` stops the work with an early return when `list.Any(a => a.Id == 0)`.
- `CustomFieldController` stops the work with an early return when `!isCreated`.
- `CustomFieldController` stops the work with an early return when `!isRemoved`.
- `CustomFieldController` stops the work with an early return when `isRenamed`.

## Relationships

- MODULE_DECLARES → `GetLookupFieldTypes`
- MODULE_DECLARES → `GetLookupAppModules`
- MODULE_DECLARES → `GetLookupAppProperties`
- MODULE_DECLARES → `GetLookupAppSubModules`
- MODULE_DECLARES → `GetCustomFieldsOfModelById`
- MODULE_DECLARES → `GetCustomFieldsOfObjectById`
- MODULE_DECLARES → `GetCustomFieldsWithValuesOfObjectById`
- MODULE_DECLARES → `CreateCustomFieldList`
- MODULE_DECLARES → `RemoveCustomField`
- MODULE_DECLARES → `RenameCustomField`
- MODULE_DECLARES → `SetCustomField`
- MODULE_DECLARES → `DeleteCustomFieldValue`
- IMPORTS → `BaseController`
- IMPORTS → `Module`
- IMPORTS → `ModuleBindingModel`
- IMPORTS → `PageFieldBindingModel`
- IMPORTS → `CreateCustomFieldModel`
- IMPORTS → `CompanyCustomFieldModel`

## Used by

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

### calls by (2)

- `AppSettings` — `Frontend/src/app/settings/app/app.settings.ts`:241
- `AppSettings` — `Pams/Web/Pams.Web/Client/app/settings/app/app.settings.ts`:126
