示例#1
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     IocConfig.Initialize(GlobalConfiguration.Configuration);
     GlobalConfiguration.Configuration
     .Formatters
     .JsonFormatter
     .SerializerSettings
     .ContractResolver = new CamelCasePropertyNamesContractResolver();
 }
示例#2
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     IocConfig.Initialize(GlobalConfiguration.Configuration);
 }