Esempio n. 1
0
        public async Task <IActionResult> Click(string shortUrl)
        {
            string referer = Request.Headers["Referer"].ToString() ?? string.Empty;

            Statistic stat = await urlService.Click(shortUrl, referer, Request.HttpContext.Connection.RemoteIpAddress.ToString());

            return(RedirectPermanent(stat.Url.LongUrl));
        }