Count()
Retrieve a count of service requests
Description
This method is used to retrieve the number of service requests.
Overrides include the ability to further filter by service ID.
Package Details
Interface
IServiceRequestManager
Syntax
IServiceRequestManager.Count(int userId)
IServiceRequestManager.Count(int userId, int serviceId)
Returns
int
API
[GET] /api/v1/services/{id}/servicerequests
Parameters
userId : [integer]
serviceId : [integer]
Returns
200 - Ok
Example
using MTOA.BLL.Interfaces;
int userId = 2757;
int serviceId = 11;
var count = await _serviceRequestManager.Count(userId, serviceId);