﻿using System.Web.Mvc;

namespace Snapplicator.Areas.Content
{
    public class ContentAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "Content";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapRoute(
                "Content_default",
                "Content/{controller}/{action}/{id}",
                new { action = "Index", controller = "Page", id = UrlParameter.Optional }
            );

            context.MapRoute(
                "Content_page",
                "Page/{path}",
                new { action = "View", controller = "Page"}
            );
        }
    }
}