public async Task <IAppRole[]> Roles(IModifier modifier)
        {
            var appModifier = await appContext.GetModifierKey();

            var request = new GetUserRolesRequest
            {
                UserID     = ID.Value,
                ModifierID = modifier.ID.Value
            };
            var roles = await hubClient.AppUser.GetUserRoles(appModifier, request);

            return(roles.Select(r => new HubClientRole(r)).ToArray());
        }
 public Task <AppRoleModel[]> GetUserRoles(string modifier, GetUserRolesRequest model) => Post <AppRoleModel[], GetUserRolesRequest>("GetUserRoles", modifier, model);