Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

The parameter is of type ServiceRequestStatusHistoryUpdateDto with properties:

  • int ServiceRequestHistoryEntryId

  • DateTime UpdateDate (in UTC)

Package Details

Interface

IServiceRequestManager

Syntax
IServiceRequestManager.UpdateStatusHistory(ServiceRequestStatusHistoryUpdateDto serviceRequestStatusHistoryUpdate)

...

ServiceRequestStatusHistoryUpdateDto

Returns

ICollection<MTOA.DomainObjects.ServiceRequestStatusHistoryEx>

...

[PUT] /api/v1/servicerequests/status-history-ex

Parameter

The parameter is of type ServiceRequestStatusHistoryUpdateDto with properties:

  • int ServiceRequestHistoryEntryId

  • DateTime UpdateDate (in UTC)

Returns

200 - Ok

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

var serviceRequestStatusHistoryUpdate = new ServiceRequestStatusHistoryUpdateDto 
{
	ServiceRequestHistoryEntryId = 3170,
	UpdateDate = "2020-11-04T13:25:56.919Z"
}


var statusHistory = await __serviceRequestRepository.UpdateStatusHistory(serviceRequestStatusHistoryUpdate);

...