# SupportTicketController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Tickets/SupportTicketController.cs` (line 12)

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

## Where it refuses work

- `SupportTicketController` stops the work with an early return when `isSaved != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 7 places.
- `SupportTicketController` stops the work with an early return when `!logic.IsFound(model.Id)`, in 4 places.
- `SupportTicketController` stops the work with an early return when `model.LinkedTickets == null || model.LinkedTickets.Count == 0`, in 2 places.
- `SupportTicketController` stops the work with an early return when `!logic.IsFound(id)`.
- `SupportTicketController` stops the work with an early return when `!logic.IsFound(ticketId)`.
- `SupportTicketController` stops the work with an early return when `httpRequest == null`.

## Relationships

- MODULE_DECLARES → `GetById`
- MODULE_DECLARES → `GetTicketsLookup`
- MODULE_DECLARES → `GetListByUserId`
- MODULE_DECLARES → `GetListByUserId`
- MODULE_DECLARES → `GetListByUserId`
- MODULE_DECLARES → `GetClosedListByUserId`
- MODULE_DECLARES → `GetReplyListByTicketId`
- MODULE_DECLARES → `CreateTicketWithAttachments`
- MODULE_DECLARES → `AddAttachmentToTicket`
- MODULE_DECLARES → `SaveTicketReply`
- MODULE_DECLARES → `ChangeTicketStatus`
- MODULE_DECLARES → `ModifyTicket`
- MODULE_DECLARES → `DownloadAttachment`
- MODULE_DECLARES → `LinkRelatedTickets`
- MODULE_DECLARES → `UnLinkRelatedTickets`
- IMPORTS → `BaseController`
- IMPORTS → `UserTicketBindingModel`
- IMPORTS → `TicketAttachmentBindingModel`
- IMPORTS → `TicketReplyBindingModel`
- IMPORTS → `TicketAttachment`
- IMPORTS → `Ticket`
- IMPORTS → `StorageFile`
