Example #1
0
 public async Task <bool> AddUserToRole(
     int roleId,
     Guid roleGuid,
     int userId,
     Guid userGuid
     )
 {
     return(await dbRoles.AddUser(roleId, userId, roleGuid, userGuid));
 }
Example #2
0
 public async Task <bool> AddUserToRole(
     int roleId,
     Guid roleGuid,
     int userId,
     Guid userGuid,
     CancellationToken cancellationToken = default(CancellationToken)
     )
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(await dbRoles.AddUser(roleId, userId, roleGuid, userGuid));
 }