...
Code Block |
---|
ServiceRequestManager.Validate(int serviceRequestId, int userId, int serviceId); |
Returns
Task
API Endpoint
[GETPOST] /api/v1/users/{id}/servicerequestsservicerequests
Parameters
serviceRequestId
: The service id to verify.userId
: The user id that should match the service id.serviceId
: Id of the service used to validate the requests.
Returns
200 - Ok
Example
Code Block | ||
---|---|---|
| ||
using MTOA.BLL.Interfaces; int myServiceRequestId = 12345 int myServiceId = 123; _serviceRequestManager.Validate(myServiceIdRequestId, CurrentUser.Id, myServiceId); |
...