public async Task SendBankDetailReminderEmail([FromBody] SendBankDetailsEmailRequest request)
 {
     await SendCommandAsync(new SendBankDetailsReminderEmailCommand(request.AccountId,
                                                                    request.AccountLegalEntityId,
                                                                    request.EmailAddress,
                                                                    request.AddBankDetailsUrl));
 }
        public async Task SendBankDetailReminderEmail(long accountId, SendBankDetailsEmailRequest sendBankDetailsEmailRequest)
        {
            var request = new PostBankDetailsReminderEmailRequest(accountId)
            {
                Data = sendBankDetailsEmailRequest
            };

            await _client.Post <SendBankDetailsEmailRequest>(request);
        }
        public async Task <IActionResult> SendBankDetailsReminderEmail(SendBankDetailsEmailRequest request)
        {
            await _mediator.Send(new SendBankDetailsReminderEmailCommand(request.AccountId, request.AccountLegalEntityId, request.EmailAddress, request.AddBankDetailsUrl));

            return(new OkResult());
        }