Exemplo n.º 1
0
        public async Task Get([FromRoute] string relativePath)
        {
            string redirectUrl = await _tinyUrlService.GetRedirectUrl(relativePath);

            if (!string.IsNullOrWhiteSpace(redirectUrl))
            {
                RedirectPermanent(redirectUrl);
            }
        }