public async Task <IActionResult> ResendConfirmIdentity()
        {
            await _identityApplicationService.ResendConfirmIdentityAsync(new ResendConfirmIdentityAdto
            {
                IdentityId = _currentIdentityProvider.Id
            });

            return(Accepted(_resourceBuilder.Build(new ResendConfirmIdentityResource())));
        }
 public Task ResendConfirmIdentityAsync(ResendConfirmIdentityAdto resendConfirmIdentityAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _identityApplicationService.ResendConfirmIdentityAsync(resendConfirmIdentityAdto),
                                                    IdentityAuthorisationContext.Create(resendConfirmIdentityAdto.IdentityId, AuthorisationAction.Update)));
 }