GetByUserId()
Get a business system by user id
Description
Retrieves the business system of a user.
Package Details
Interface
IBusinessSystemManager
Syntax
BusinessSystemManager.GetByUserId(int userId);
Returns
Task<BusinessSystemMapping>
API
[GET] /api/v1/users/{id}/business-systems
Parameters
Path
Id: The user id
Returns
200 OK - Business system mappings
Example
int userId = 100;
var businessSystem = await _businessSystemManager.GetByUserId(userId);
Response.Write( $@"{businessSystem.EnglishName} has a source id of: {businessSystem.SourceId}");