Beispiel #1
0
        public bool GenerateSummary(Tour currentTour)
        {
            TourPlannerReport report     = new TourPlannerReport(new SaveFile());
            ITourLogDAO       tourLogDao = DALFactory.CreateTourLogDAO();

            return(report.GenerateReportPDF(currentTour, tourLogDao.GetAllTourLogs(), true));
        }
Beispiel #2
0
        public bool JsonExport()
        {
            IJsonManager jsonManager = new JsonManager(new SaveFile(), new OpenFile());
            ITourLogDAO  tourLogDao  = DALFactory.CreateTourLogDAO();
            ITourDAO     tourDao     = DALFactory.CreateTourDAO();

            IEnumerable <Tour>    tours    = tourDao.GetTours();
            IEnumerable <TourLog> tourLogs = tourLogDao.GetAllTourLogs();

            return(jsonManager.JsonExport(tours, tourLogs));
        }