Пример #1
0
        public IActionResult Index(string hash)
        {
            var URL = _repository.GetUrlForHash(hash);

            if (URL.Contains("http://") || URL.Contains("https://"))
            {
                return(Redirect(URL));
            }
            else
            {
                return(Redirect("http://" + URL));
            }
        }