protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); AutoMapperConfiguration.Initialize(); GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; }
protected void Application_Start() { GlobalConfiguration.Configure(WebApiConfig.Register); AutoMapperConfiguration.Initialize(); }