Figured it out. Put the following into my HomeController.cs file.
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
}
public ActionResult Index(int? id)
{
if (id == 123)
{
// do my logic here
return View();
}
else
{
return View();
}
}
in this example allows me to do what I need to be able to do. Hope this is helpful to someone else.