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

namespace Nateby
{
    // 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(
                "Who",                                              // Route name
                "who/",                           // URL with parameters
                new { controller = "Home", action = "Who", id = "" }  // Parameter defaults
            );

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

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

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

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

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

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

            routes.MapRoute(
                 "Links",                                              // Route name
                 "links/",                           // URL with parameters
                 new { controller = "Home", action = "Legal", 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);
        }
    }
}