Exemplo n.º 1
0
        public static HttpConfiguration Configure()
        {
            AutoMapperSetup.Setup();

            var webApiConfiguration = new HttpConfiguration();

            webApiConfiguration.MapHttpAttributeRoutes();
            return(webApiConfiguration);
        }
Exemplo n.º 2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            DataReferenceSetup.Setup();
            SiteMapSetup.Setup();
            //UnityContainerSetup.SetUp();
            AutoMapperSetup.Setup();

            FluentValidationModelValidatorProvider.Configure();
        }