public static string Execute()
        {
            var db = new ProductsCatalogData();

            var excelReader = new ExcelCatalogProductsReader(db.Products);

            var zipParser = new ZipParser("../../../Jan 2015 Report.zip", new List<string>() { ".xls" }, excelReader);

            zipParser.Parse();

            return "Products added to MongoDB products catalog";
        }
Exemplo n.º 2
0
        public static string Execute()
        {
            var db = new ProductsCatalogData();

            var excelReader = new ExcelCatalogProductsReader(db.Products);

            var zipParser = new ZipParser("../../../Jan 2015 Report.zip", new List <string>()
            {
                ".xls"
            }, excelReader);

            zipParser.Parse();

            return("Products added to MongoDB products catalog");
        }
Exemplo n.º 3
0
        public static string Execute()
        {
            var storesDb = new StoresData();

            var excelReader = new ExcelSalesReader(storesDb.Sales, storesDb.Products);

            var zipParser = new ZipParser("../../../Jan 2015 Report.zip", new List <string>()
            {
                ".xls"
            }, excelReader);

            zipParser.Parse(true);

            storesDb.SaveChanges();

            return("Excels imported");
        }