using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace BinBackedUp
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Support",                                              // Route name
                "Support/",                           // URL with parameters
                new { controller = "Home", action = "Support", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "ROI",                                              // Route name
                "ROI/",                           // URL with parameters
                new { controller = "Home", action = "ROI", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "Products",                                              // Route name
                "Products/",                           // URL with parameters
                new { controller = "Home", action = "Products", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "Login",                                              // Route name
                "Login/",                           // URL with parameters
                new { controller = "Home", action = "Login", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "HowitWorks",                                              // Route name
                "How-it-Works/",                           // URL with parameters
                new { controller = "Home", action = "HowitWorks", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "FreeTrial",                                              // Route name
                "Free-trial/",                           // URL with parameters
                new { controller = "Home", action = "FreeTrial", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "About",                                              // Route name
                "About/",                           // URL with parameters
                new { controller = "Home", action = "About", id = "" }  // Parameter defaults
            );

            routes.MapRoute(
                "Thankyou",                                              // Route name
                "Thankyou/",                           // URL with parameters
                new { controller = "Home", action = "Thankyou", id = "" }  // Parameter defaults
            );


            routes.MapRoute(
                "Default",                                              // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
            );

        }

        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
        }
    }
}