GetByUserAndServiceId()

Get business system details by user and service

Description

Retrieves a business system of a user and service.

Package Details

Interface

IBusinessSystemManager

Syntax

BusinessSystemManager.GetByUserAndServiceId(int userId, int serviceId);

Returns

Task<BusinessSystemMapping>

API

[GET] /api/v1/users/{id}/business-systems?serviceId={serviceId}

Parameters

Path
Id: The user id

Querystring
serviceId: The service id

Returns

200 OK - Business system mappings

Example

int userId = 100; int serviceId = 11; var businessSystem = await _businessSystemManager.GetByUserAndServiceId(userId, serviceId); Response.Write( $@"{businessSystem.EnglishName} has a source id of: {businessSystem.SourceId}");