Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: This is only for the MTOA Platform Team.

Description

Update enrollment of the application of the user

...

Code Block
languagec#
const int applicationId = 12;
const int userId= 1234;
const int modifiedByUserId= 5678;

List<EditUserApplicationService> userUpdateAppServices = new List<EditUserApplicationService>();
userUpdateAppServices.Add(new EditUserApplicationService 
{
     IsSelected = false,
     RoleId = UserRoleType.Clerk,
     ServiceCd = 230111
});
userUpdateAppServices.Add(new EditUserApplicationService 
{
     IsSelected = true,
     RoleId = UserRoleType.Manager,
     ServiceCd = 231 224
});

await MtoaApi.UserApplicationManagementApi.UpdateEnrollment(applicationId, userId, userUpdateAppServices, modifiedByUserId);

...