using System.Web.Mvc; using Website.Filters; namespace Website.Controllers { [Compressable] [SerializableViewData] public class HomeController : ControllerBase { public ActionResult ContentPage(string pageName) { // We assume that the request has been routed here // via a routing rule which has already constrained // the pageName to an existing view, so just pass // this request right through to the requested view. // If this is not the case, oh well - the user will // get an error (that'll teach them to hack the url!). return View(pageName); } public ActionResult RetroContent(string pageName) { // Redirect any old content links to their new pages. // NOTE: These are redirects so that the requestor // will know that the page has moved. return RedirectToAction("ContentPage", pageName); } } }