public static void Register(HttpConfiguration config, IUnityContainer container)
        {
            // Register error handling attribute for all Web API methods
            config.Filters.Add(new ErrorHandlingAttribute());

            // Replace the global exception handler with our own
            config.Services.Replace(typeof(IExceptionHandler), new GlobalExceptionHandler());

            // Add the default exception logger
            config.Services.Add(typeof(IExceptionLogger), new DefaultExceptionLogger());

            var cacheRegistrar = new CacheRegistrar(container);
            cacheRegistrar.RegisterCache();
        }
        public static void Register(HttpConfiguration config, IUnityContainer container)
        {
            // Register error handling attribute for all Web API methods
            config.Filters.Add(new ErrorHandlingAttribute());

            // Replace the global exception handler with our own
            config.Services.Replace(typeof(IExceptionHandler), new GlobalExceptionHandler());

            // Add the default exception logger
            config.Services.Add(typeof(IExceptionLogger), new DefaultExceptionLogger());

            var cacheRegistrar = new CacheRegistrar(container);

            cacheRegistrar.RegisterCache();
        }