Пример #1
0
        public void CreateReport(string filePath = null, string fileName = null)
        {
            IList <DriverInfo>         sqliteDriversData = SQLiteWorker.GetDriverRouteData();
            IList <VehicleInformation> mysqlVehiclesData = EntryPoint.GetAllVehicleInformation();
            var averageSalaryReport = ExcelReport.GenerateAverageSalaryReport(sqliteDriversData);
            var averageTravelledDistanceByVehicle = ExcelReport.GenerateAverageTravelledDistanceByVehicle(sqliteDriversData, mysqlVehiclesData);
            var excelGenerator = new ExcelGenerator(filePath, fileName);

            excelGenerator.Generate(averageSalaryReport, averageTravelledDistanceByVehicle);
        }
Пример #2
0
        public IEnumerable <EmployeeModel> Get()
        {
            var sqlite = new SQLiteWorker();

            return(sqlite.GetEmploees());
        }