# TeamController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Person/TeamController.cs` (line 13)

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

## Where it refuses work

- `TeamController` stops the work with an early return when `!isFound`, in 4 places.
- `TeamController` stops the work with an early return when `isFound`, in 2 places.
- `TeamController` stops the work with an early return when `isSaved != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 2 places.
- `TeamController` stops the work with an early return when `!isSaved`, in 2 places.
- `TeamController` stops the work with an early return when `!logic.IsAllowedToAddTeamAsPerSubscription(CompanyID)`.
- `TeamController` stops the work with an early return when `newModel.Id == 0`.

## Relationships

- MODULE_DECLARES → `GetTeamById`
- MODULE_DECLARES → `GetTeamsByBranch`
- MODULE_DECLARES → `GetTeamsForSelectedBranches`
- MODULE_DECLARES → `GetUserTeamsByBranchLookup`
- MODULE_DECLARES → `GetTeamLookupForSelectedBranches`
- MODULE_DECLARES → `CreateTeam`
- MODULE_DECLARES → `DeleteTeam`
- MODULE_DECLARES → `DeactivateTeam`
- MODULE_DECLARES → `ActivateTeam`
- IMPORTS → `Person`
- IMPORTS → `BaseController`
- IMPORTS → `TeamBindingModel`
- IMPORTS → `MergedTeamsBindingModel`
- IMPORTS → `DeleteDto`
