Versions Compared

Key

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

...

Removes service requests filtered by service id

Description

This method is used to remove service requests that are filtered by service request ID and user ID.

Package Details

Interface

IServiceRequestManager

Syntax

Code Block
ServiceRequestManager.Remove(int serviceRequestId, int userId);

Returns

Task

API Endpoint

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

Returns

200 - Ok

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

int myServiceRequestId = 123;

var serviceRequests = await _serviceRequestManager.Remove(myServiceRequestId, CurrentUser.Id);