GetByUserIdAndBusinessSystemType()
Get a business system by user id and business system type
Description
Retrieves a business system of a user, given their business system type.
Package Details
Interface
IBusinessSystemManager
Syntax
BusinessSystemManager.GetByUserIdAndBusinessSystemType(int userId, BusinessSystemType businessSystemType);
Returns
Task<BusinessSystemMapping>
API
[GET]/api/v1/users/{id}/business-systems?businessSystemType={businessSystemType}
Parameters
Path
Id: The user id
Querystring
businessSystemType: The business system type (this is an enumeration)
Enumeration values
Undefined
UAS
SVMMS
MTOA
MTO
SIRS
FTAE
CPCS
BW
DAPLS
RSIP
ZEV
MyTcReferenceCenter
EMER_ACES
NDWL_APA
MarineCertification
Returns
200 OK - Business system mappings
Example
int userId = 100;
BusinessSystemType businessSystemType = BusinessSystemType.MTOA;
var businessSystem = await _businessSystemManager.GetByUserIdAndBusinessSystemType(userId, businessSystemType);
Response.Write( $@"{businessSystem.EnglishName} has a source id of: {businessSystem.SourceId}");