예제 #1
0
 public ActiviteitenController(IBoekService bs)
 {
     this.bs = bs;
     flickr  = MvcApplication.flickr;
     if (flickr == null)
     {
         flickr = FlickrApiManager.GetInstance();
     }
 }
예제 #2
0
        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);
        }