2021-09-07 23:40:58 +10:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Web;
|
|
|
|
using System.Web.Mvc;
|
|
|
|
using System.Web.Routing;
|
2021-09-18 22:28:20 +10:00
|
|
|
using SportsStore.Domain.Entities;
|
|
|
|
using SportsStore.WebUI.Infrastructure.Binders;
|
2021-09-07 23:40:58 +10:00
|
|
|
|
|
|
|
namespace SportsStore.WebUI
|
|
|
|
{
|
|
|
|
public class MvcApplication : System.Web.HttpApplication
|
|
|
|
{
|
|
|
|
protected void Application_Start()
|
|
|
|
{
|
|
|
|
AreaRegistration.RegisterAllAreas();
|
|
|
|
RouteConfig.RegisterRoutes(RouteTable.Routes);
|
2021-09-18 22:28:20 +10:00
|
|
|
ModelBinders.Binders.Add(typeof(Cart), new CartModelBinder());
|
2021-09-07 23:40:58 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|