public async Task <IActionResult> Delete(string id)
        {
            var persistedGrant = await _persistedGrantService.GetByKeyAsync(UrlHelper.QueryStringUnSafeHash(id));

            if (persistedGrant == null)
            {
                return(RedirectToAction(nameof(Index)));
            }

            return(View(CommonMappers.Mapper.Map <PersistedGrantModel>(persistedGrant)));
        }