public async Task <InviteContactToOrganisationResponse> InviteContactToOrganisation(InviteContactToOrganisationRequest invitationRequest)
 {
     using (var request = new HttpRequestMessage(HttpMethod.Post, "/api/v1/contacts/inviteContactToOrganisation"))
     {
         return(await PostPutRequestWithResponse <InviteContactToOrganisationRequest, InviteContactToOrganisationResponse>(request, invitationRequest));
     }
 }
Esempio n. 2
0
 public async Task <ActionResult> InviteContactToOrganisation([FromBody] InviteContactToOrganisationRequest request)
 {
     return(Ok(await _mediator.Send(request, CancellationToken.None)));
 }