Ejemplo n.º 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            GlobalConfiguration.Configure(WebApiConfig.Register);

            //Web API serialize properties starting with lowercase letter
            GlobalConfiguration.Configuration
            .Formatters
            .JsonFormatter
            .SerializerSettings
            .ContractResolver = new CamelCasePropertyNamesContractResolver();
            MapperClass.OnInit();
        }
Ejemplo n.º 2
0
 public static void OnInitMapper()
 {
     MapperClass.OnInit();
 }