Versions Compared

Key

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

...

This method is used to retrieve a service requests request by service request id.

Package Details

...

IServiceRequestManager

Syntax

Code Block
_serviceRequestManagerServiceRequestManager.GetById<T>(int serviceRequestId) where T : IServiceRequestMetadata

...

API Endpoint

[GET] /api/v1/usersservicerequests/{id}/servicerequests

Returns

200 - Ok

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

int MyServiceIdmyServiceId = 123;

var serviceRequest = await _serviceRequestManager.GetById<T>GetById<ServiceRequest>(MyServiceIdmyServiceId);