public async Task <ActionResult <RejectInvitationResult> > RejectInvitation(
            [FromBody] RejectInvitationParams rejectInvitationParams,
            [FromServices] RejectInvitationHandler rejectInvitationHandler)
        {
            var result = await rejectInvitationHandler.Reject(
                Request.GetUserName(),
                rejectInvitationParams.ProjectName,
                rejectInvitationParams.InvitingUserName);

            return(result.Unwrap(new RejectInvitationResult()));
        }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> RejectInvitationAsync(this IDidacticalEnigmaMem operations, RejectInvitationParams body = default(RejectInvitationParams), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RejectInvitationWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </param>
 public static object RejectInvitation(this IDidacticalEnigmaMem operations, RejectInvitationParams body = default(RejectInvitationParams))
 {
     return(operations.RejectInvitationAsync(body).GetAwaiter().GetResult());
 }