GetStatusHistory()
Retrieve a collection of Service Request status history for a given Service Request Id
Description
This method is used to retrieve a collection of Service Request status history for a given Service Request.
For AP services the method retrieves different list of status per serviceStandard.
Package Details
Interface
IServiceRequestManager
Syntax
IServiceRequestManager.GetStatusHistory(int serviceRequestId)
Returns
ICollection<ServiceRequestStatusHistory>
API
[GET] /api/v1/servicerequests/{id}/status-history
Parameters
Parameter | Description | Type |
---|---|---|
serviceRequestId | The id of the service request we want its status history | int |
Returns
200 - Ok
Example
using MTOA.BLL.Interfaces;
int serviceRequestId = 475;
var count = await _serviceRequestManager.GetStatusHistory(serviceRequestId);