public static HttpConfiguration Configure() { AutoMapperSetup.Setup(); var webApiConfiguration = new HttpConfiguration(); webApiConfiguration.MapHttpAttributeRoutes(); return(webApiConfiguration); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); DataReferenceSetup.Setup(); SiteMapSetup.Setup(); //UnityContainerSetup.SetUp(); AutoMapperSetup.Setup(); FluentValidationModelValidatorProvider.Configure(); }