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); }
public IEnumerable <EmployeeModel> Get() { var sqlite = new SQLiteWorker(); return(sqlite.GetEmploees()); }