public Task <TResponse> PostAsJson <TRequest, TResponse>(string url, TRequest data, CancellationToken token)
 {
     return(_client.PostAsJson <TRequest, TResponse>(url, data, token));
 }
 public Task SendEmailToAllProviderRecipients(long providerId, ProviderEmailRequest message, CancellationToken cancellationToken)
 {
     return(_httpClient.PostAsJson($"api/email/{providerId}/send", message, cancellationToken));
 }
Example #3
0
 public Task AddDraftApprenticeship(long cohortId, AddDraftApprenticeshipRequest request, CancellationToken cancellationToken = default)
 {
     return(_client.PostAsJson($"api/cohorts/{cohortId}/draft-apprenticeships", request, cancellationToken));
 }
 public Task RevokePermissions(RevokePermissionsRequest request, CancellationToken cancellationToken = default)
 {
     return(_restHttpClient.PostAsJson("permissions/revoke", request, cancellationToken));
 }