GetByServiceId()
Get a list of activities by service
Description
Return a list a activities for a given service.
Package Details
Interface
IActivityManager
Syntax
_activityManager.GetByServiceId( int serviceId )
Returns
Task<ICollection<Activity>>
API
[GET] /api/v1/services/{id}/activities
Parameters
id: Service id used to return its associated activities.
Returns
200 OK - Array of activities
Example
int myServiceId = 123;
await activityManager.GetByServiceId( myServiceId );