GetAllByServices() [ServicePreferenceManager]

Get all by services

Description

Returns a list of service preferences for a service.

Package Details

Interface

IServicePreferenceManager

Syntax

ServicePreferenceManager.GetAllByServices(int serviceId);

Returns

Task<IEnumerable<ServiceSetting>>

API

GET
/api/v1/services/{id}/service-preferences

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

The service id associated to the service preference

path

Returns

200 OK - List of service preferences associated to the service

Example

const int serviceId = 11; var servicePreferences = await _servicePreferenceManager.GetAllByServices(serviceId);