Update Date and time of a Status History for a given log entry
Description
This method is used to update the date and time of a status history for a given entry.
The time received by the Api is in UTC. Date should not be great to the current date and
it should be chronological.
...
int ServiceRequestHistoryEntryId
DateTime UpdateDate (in UTC)
Package Details
Interface
IServiceRequestManager
Syntax
IServiceRequestManager.UpdateStatusHistory(ServiceRequestStatusHistoryUpdateDto serviceRequestStatusHistoryUpdate)
Parameter type
ServiceRequestStatusHistoryUpdateDto
Returns
ICollection<MTOA.DomainObjects.ServiceRequestStatusHistoryEx>
API
...
[PUT] /api/v1/servicerequests/status-history-ex
Returns
200 - Ok
Example
Code Block | ||
---|---|---|
| ||
using MTOA.BLL.Interfaces; |
...
Code Block |
---|
Parameter var serviceRequestStatusHistoryUpdate = new ServiceRequestStatusHistoryUpdateDto { ServiceRequestHistoryEntryId = 3170, UpdateDate = "2020-11-04T13:25:56.919Z" } var statusHistory = await __serviceRequestRepository.UpdateStatusHistory(serviceRequestStatusHistoryUpdate); |
...