Versions Compared

Key

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

...

IServiceRequestManager

Syntax

Code Block
_serviceRequestManagerServiceRequestManager.GetByServiceIdFilteredByUser<T>(int serviceId, int userId) where T : IServiceRequestMetadata
_serviceRequestManagerServiceRequestManager.GetByServiceIdFilteredByUser<T>(int serviceId, int organizationId, int userId) where T : IServiceRequestMetadata
_serviceRequestManagerServiceRequestManager.GetByServiceIdFilteredByUser<T>(int serviceId, int userId, int page, int pageSize) where T : IServiceRequestMetadata
_serviceRequestManagerServiceRequestManager.GetByServiceIdFilteredByUser<T>(int serviceId, int organizationId, int userId, int page, int pageSize) where T : IServiceRequestMetadata;

...

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

Parameter

Parameter

Description

Type

serviceId

id of the service

int

organizationId

id of the organization

int

pageNumber

Page number

int

pageSize

Page size

int

Returns

200 - Ok

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

int MyServiceIdserviceId = 123;
int MyOrganizationIdorganizationId = 567;
int pageNumber = 1;
int pageSize = 20;

var serviceRequests = await _serviceRequestManager.Get<T>Get<ServiceRequest>(MyServiceIdserviceId, MyOrganizationIdorganizationId, CurrentUser.Id, pageNumber, pageSize);
        

...