예제 #1
0
        public static HttpConfiguration Configure()
        {
            AutoMapperSetup.Setup();

            var webApiConfiguration = new HttpConfiguration();

            webApiConfiguration.MapHttpAttributeRoutes();
            return(webApiConfiguration);
        }
예제 #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

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

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

            FluentValidationModelValidatorProvider.Configure();
        }