public async Task <IActionResult> Logout()
        {
            await _identityApplicationService.LogoutAsync(new LogoutAdto
            {
                IdentityId = _currentIdentityProvider.Id
            });

            return(NoContent());
        }
 public Task LogoutAsync(LogoutAdto logoutAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _identityApplicationService.LogoutAsync(logoutAdto),
                                                    IdentityAuthorisationContext.Create(logoutAdto.IdentityId, AuthorisationAction.Update)));
 }