Method Get
Get(int)
Returns the storage conditions corresponding to the given code if one is found or StorageConditionNotFoundContract is thrown otherwise
[OperationContract]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(StorageConditionNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Storage Conditions", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Get a storage condition definition", Description = "Get the storage condition definition matching the specified code")]
[WebGet(UriTemplate = "Definition?code={code}", ResponseFormat = WebMessageFormat.Json)]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.OK, Description = "Success")]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.InternalServerError, Description = "An unexpected error occurred while processing the request.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.NotFound, Description = "No storage condition found with provided code.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Fault exception", Type = typeof(JsonErrorMessage))]
StorageConditionContract Get(int code)
Parameters
code
intThe code associated with the target storage condition
Returns
- StorageConditionContract
The storage condition corresponding to the given code
Exceptions
- StorageConditionNotFoundContract
This exception would be thrown if the given code is not found in the database