예제 #1
0
        public IActionResult RedirectFromHash(string hash)
        {
            string finalUrl = repository.GetLinkFromHash(hash);

            return(Redirect(finalUrl));
        }
예제 #2
0
        public IActionResult GetLink(string hash)
        {
            string link = repository.GetLinkFromHash(hash);

            return(Ok(new { link }));
        }