using System.Web.Mvc;

namespace LHDN.CRM.Web.Areas.Outbound
{
    public class OutboundAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Outbound";
            }
        }

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

            context.MapRoute(
                "Outbound_default",
                "Outbound/{controller}/{action}/{id}/{id2}",
                new { action = "Index", id = UrlParameter.Optional, id2 = UrlParameter.Optional }
            );
        }
    }
}