Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Validates that a service request belongs to the specified user

Description

This method is used to validate that a service request belongs to the specified user. If an irregularity is found, an exception is thrown.

Package Details

Interface

IServiceRequestManager

Syntax

_serviceRequestManager.Validate(int serviceRequestId, int userId, int serviceId);

Returns

Task

API Endpoint

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

Returns

200 - Ok

Example

using MTOA.BLL.Interfaces;

int MyServiceRequestId = 12345
int MyServiceId = 123;

_serviceRequestManager.Validate(MyServiceIdRequestId, CurrentUser.Id, MyServiceId);
        

  • No labels