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 Current »

Validates that organizations are bound to the specified user

Description

This method is used to validate that organizations are bound to the specified user. If an irregularity is found, an exception is thrown.

Package Details

Interface

IServiceRequestManager

Syntax

ServiceRequestManager.ValidateByOrganizationsBoundToUser(int? serviceRequestId, int userId, int serviceId);

Returns

Task

API Endpoint

[POST] /api/v1/servicerequests

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

using MTOA.BLL.Interfaces;

int myServiceRequestId = 12345
int myServiceId = 123;

_serviceRequestManager.ValidateByOrganizationsBoundToUser(myServiceIdRequestId, CurrentUser.Id, myServiceId);
        

  • No labels