public static async Task <HttpResponseMessage> QueryAsync(this Resources.Queries.InviteCredentialQuery query,
                                                           HttpRequestMessage request, UrlHelper urlHelper)
 {
     return(await query.ParseAsync(request,
                                   q => QueryByIdAsync(q.Id.ParamSingle(), request, urlHelper),
                                   q => QueryByActorAsync(q.Actor.ParamSingle(), request, urlHelper)));
 }
 public static async Task <HttpResponseMessage> DeleteAsync(this Resources.Queries.InviteCredentialQuery query,
                                                            HttpRequestMessage request, UrlHelper urlHelper)
 {
     return(await request.GetActorIdClaimsAsync(ClaimsDefinitions.AccountIdClaimType,
                                                async (performingActorId, claims) => await query.ParseAsync(request,
                                                                                                            q => DeleteByIdAsync(q.Id.ParamSingle(), request, urlHelper, performingActorId, claims))));
 }