Gets a service request by its guid.
Description
This method is used to retrieve a specific service request by its Guid
Package Details
Interface
IServiceRequestManager
Syntax
IServiceRequestManager.GetByGuid<T>(string guid) where T : IServiceRequestMetadata
Parameter type
string
Returns
ICollection<MTOA.DomainObjects.ServiceRequest>
API
...
[GET] /api/v1/servicerequests/
Returns
200 - Ok
Example
Code Block | ||
---|---|---|
| ||
using MTOA.BLL.Interfaces; |
...
Code Block |
---|
Parameter string guid = "A79887623B0E619EE05438EAA7528E36"; var serviceRequest = await _serviceRequestManager.GetByGuid<ServiceRequestMetadata>(guid); |
...