Example #1
0
        public async Task <string> HandleAsync(string shortUrl)
        {
            var doc = await _shortenerService.GetByShortUrl(shortUrl);

            if (doc != null)
            {
                _shortenerService.IncrementCounter(shortUrl);
            }

            return(doc?.LongUrl);
        }