public InriverDataImportController(ICatalogImporter catalogImporter,
                                    ILogger logger,
                                    MediaImporter mediaImporter)
 {
     _catalogImporter = catalogImporter;
     _logger          = logger;
     _mediaImporter   = mediaImporter;
 }
        public InriverDataImportController()
        {
            // In case you haven't got your own WebAPI dependency resolver, do it this old fashioned silly way.

            _catalogImporter = ServiceLocator.Current.GetInstance <ICatalogImporter>();
            _logger          = ServiceLocator.Current.GetInstance <ILogger>();
            _mediaImporter   = ServiceLocator.Current.GetInstance <MediaImporter>();
        }