Esempio n. 1
0
        /// <summary>
        /// Daca s-au uploadat numai dxf-uri nu curatam baza
        /// </summary>
        /// <param name="dxfOnly">If set to <c>true</c> dxf only.</param>
        private void Prepare(bool dxfOnly = false)
        {
            if (!dxfOnly)
            {
                excelConfiguration.ClearAll();
                repo.ClearDatabase();
            }

            dxfRepo.ClearAll();
        }
Esempio n. 2
0
        public IActionResult ProcessAllExcels()
        {
            var excels = dropBox.ListFolder(excelIn, false, true, ".xls");

            excelRepo.ClearAll();
            excels.ToList().ForEach(x => dropBox.Download(excelIn, x, excelRepo.DirPath, x));

            var orderedExcels = OrderUploadedExcelFiles(excels);

            return(Ok());
        }