Пример #1
0
        public async Task StoreAsync(PersistedGrant grant)
        {
            var result = await _persistedGrantService.Save(_userId, _mapper.Map <PersistedGrant, PersistedGrantDto>(grant));

            if (result.IsSuccess)
            {
                _logger.LogInformation($"Save persisted grant success: {grant.ToJson()}");
            }
            else
            {
                _logger.LogInformation($"Can not save persisted grant: {result.Message}");
            }
        }