# PurchasingOfferController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Purchasing/PurchasingOfferController.cs` (line 14)

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

## Where it refuses work

- `PurchasingOfferController` stops the work with an early return when `!isFound`, in 10 places.
- `PurchasingOfferController` stops the work with an early return when `obj.Id == 0`, in 3 places.
- `PurchasingOfferController` stops the work with an early return when `isEntitySaved != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 3 places.
- `PurchasingOfferController` stops the work with an early return when `!entity.HasObject`, in 3 places.
- `PurchasingOfferController` stops the work with an early return when `isEntitySaved == Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 3 places.
- `PurchasingOfferController` stops the work with an early return when `isCanceled != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 3 places.

## Relationships

- MODULE_DECLARES → `GetPurchasingOffersByJobId`
- MODULE_DECLARES → `GetOfferById`
- MODULE_DECLARES → `GetOfferWithAllDetailesById`
- MODULE_DECLARES → `GetCancelReasonById`
- MODULE_DECLARES → `GetRegretReasonById`
- MODULE_DECLARES → `GetRejectReasonById`
- MODULE_DECLARES → `CreateOffer`
- MODULE_DECLARES → `UpdateOffer`
- MODULE_DECLARES → `ChangeOfferStage`
- MODULE_DECLARES → `ConvertInquiryToOffer`
- MODULE_DECLARES → `ConvertOfferBackToInquiry`
- MODULE_DECLARES → `DeleteOffer`
- MODULE_DECLARES → `UpdateCancelReason`
- MODULE_DECLARES → `UpdateRegretReason`
- MODULE_DECLARES → `UpdateRejectReason`
- MODULE_DECLARES → `RegretOffer`
- MODULE_DECLARES → `CancelOffer`
- MODULE_DECLARES → `RejectOffer`
- MODULE_DECLARES → `UndoCancelPurchaseOffer`
- MODULE_DECLARES → `UndoRegretPurchaseOffer`
- MODULE_DECLARES → `UndoRejectPurchaseOffer`
- IMPORTS → `BaseController`
- IMPORTS → `SalesOfferBindingModel`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetRegretReasonById`
- IMPORTS → `GetRegretReasonById`
- IMPORTS → `GetRejectReasonById`
- IMPORTS → `GetRejectReasonById`
- IMPORTS → `PurchasingOfferBindingModel`
- IMPORTS → `SignalRModel`
- IMPORTS → `PurchasingInquiryBindingModel`
- IMPORTS → `GetJobById`
- IMPORTS → `DeleteDto`
- IMPORTS → `UpdateCancelReason`
- IMPORTS → `UpdateCancelReason`
- IMPORTS → `CancelDetailBindingModel`
- IMPORTS → `PurchaseOfferCancelDetail`
- IMPORTS → `UpdateRegretReason`
- IMPORTS → `RegretDetailBindingModel`
- IMPORTS → `PurchaseOfferRegretDetail`
- IMPORTS → `UpdateRejectReason`
- IMPORTS → `RejectDetailBindingModel`
- IMPORTS → `PurchaseOfferRejectDetail`

## 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
