ValidateByOrganization()

Validates that a service request belongs to the specified organization

Description

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

Package Details

Interface

IServiceRequestManager

Syntax

ServiceRequestManager.ValidateByOrganization(int? serviceRequestId, int serviceId, int organizationId);

Returns

Task

API Endpoint

[POST] /api/v1/servicerequests

Parameters

  • serviceRequestId : The service id to verify.

  • organizationId : The organization id that the service request should belong to.

  • serviceId : Id of the service used to validate the requests.

Returns

200 - Ok

Example

using MTOA.BLL.Interfaces; int myServiceRequestId = 12345 int myServiceId = 123; int myOrganizationId = 323; _serviceRequestManager.ValidateByOrganization(myServiceIdRequestId, myOrganizationId, myServiceId);