public async Task <ActionResult> DeleteAsync([FromRoute] Guid id)
    {
        var application = await _store.FindByIdAsync(id.ToString());

        if (application == null)
        {
            return(NotFound());
        }
        if (application != null)
        {
            await _store.DeleteAsync(application);
        }
        return(Ok());
    }
        public async Task DeleteAsync(string clientId)
        {
            var userTenantId = _tenantIdProvider.GetTenantId().ToString();

            var app = (await _oidcAppManager.FindByClientIdAsync(clientId) as PskApplication);

            if (app != null && app.TenantId == userTenantId)
            {
                await _oidcAppManager.DeleteAsync(app);

                return;
            }

            throw new ItemNotFoundException(clientId, "Workplace");
        }