Kind: Controller
Source: Pams/API/Pams.API/Controllers/StorageController.cs (line 20)
Part of: Pams
Where it refuses work
StorageControllerstops the work with an early return when!Enum.IsDefined(typeof(Pams.API.Helpers.APIStorageManager.StorageFileType), fileType), in 2 places.StorageControllerstops the work with an early return when!CanView(fileTypeEnum, token), in 2 places.StorageControllerstops the work with an early return whentokenArr == null || tokenArr.Length < 3.StorageControllerstops the work with an early return whenfileTimeStamp < unixTimeNow.StorageControllerstops the work with an early return whentokenArr == null || tokenArr.Length < 4.StorageControllerstops the work with an early return whenPersonUserID != userID.
When something fails
StorageControllerhandles failure in 2 places: it turns it into a return value in all 2.
Relationships
- MODULE_DECLARES →
GetFile - MODULE_DECLARES →
PreviewFile - MODULE_DECLARES →
UploadFile - MODULE_DECLARES →
SavePDF - MODULE_DECLARES →
getcc - MODULE_DECLARES →
getcc - IMPORTS →
BaseController - IMPORTS →
StorageFile
Was this page helpful?