using System.Web.Mvc; using System.Web.Routing; using Microsoft.Practices.Unity; using Portoa.Web; using Portoa.Web.Unity; using VideoGameQuotes.Api; using VideoGameQuotes.Api.Persistence; using VideoGameQuotes.Web.Security; namespace VideoGameQuotes.Web { public class MvcApplication : ApplicationBase { protected override void ConfigureUnity() { Container .AddNewExtension() .Configure() .SetName("VideoGameQuotes.Web") .UseXml(); Container .AddNewExtension() .RegisterType() .RegisterType() .RegisterType(); } protected override void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("media/{*anything}"); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); } } }