// // GET: /Forwards/ public ActionResult SendToSrc(string src) { string error404 = "404.html"; string redirect = "/Home/Index"; Url url = _repo.GetBySrc(src); if (url != null) { if (!url.Redirect.Equals(string.Empty) && (url.Expires > DateTime.Now || url.Expires == null)) { redirect = url.Redirect; } else { redirect = error404; } } return(Redirect(redirect)); }