public ActiviteitenController(IBoekService bs) { this.bs = bs; flickr = MvcApplication.flickr; if (flickr == null) { flickr = FlickrApiManager.GetInstance(); } }
protected void Application_Start() { flickr = FlickrApiManager.GetInstance(); JsonConvert.DefaultSettings = () => new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore }; AreaRegistration.RegisterAllAreas(); UnityConfig.RegisterComponents(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }