public WindowTravel(TravelLogic travelLogic, TourLogic tourLogic, ExcursionLogic excursionLogic)
 {
     InitializeComponent();
     this.travelLogic = travelLogic;
     listAllTours     = tourLogic.Read(null);
     logger           = LogManager.GetCurrentClassLogger();
 }
Beispiel #2
0
        public IHttpActionResult CalaulateThePayment(int idManager, int idUser)
        {
            DateTime date = DateTime.Today;

            date = date.AddMonths(-2);
            return(Ok(TravelLogic.CalaulateThePayment(idUser, date)));
        }
Beispiel #3
0
 public WindowGetTravelGuides(TravelLogic travelLogic, TouristReportLogic reportLogic)
 {
     InitializeComponent();
     this.travelLogic = travelLogic;
     this.reportLogic = reportLogic;
     logger           = LogManager.GetCurrentClassLogger();
 }
        public WindowBondTravelExcursions(TravelLogic travelLogic, ExcursionLogic excursionLogic)
        {
            InitializeComponent();
            this.travelLogic  = travelLogic;
            listAllExcursions = excursionLogic.Read(new ExcursionBindingModel
            {
                TouristID = App.Tourist.ID
            });

            logger = LogManager.GetCurrentClassLogger();
        }
 public void GenerateTravels()
 {
     TravelLogic.GenerateTravels();
 }
Beispiel #6
0
 public IHttpActionResult getTravelsForManager(int idManager, int idUser, int date)
 {
     return(Ok(TravelLogic.getTravelsForManager(idManager, idUser, date / 100, date % 100)));
 }
Beispiel #7
0
 public IHttpActionResult getTravels(int id) //,int date)
 {
     return(Ok(TravelLogic.getTravels(id))); //, date / 100, date % 100));
 }
Beispiel #8
0
 public IHttpActionResult CalaulateThePayment(int id, DateTime date)
 {
     return(Ok(TravelLogic.CalaulateThePayment(id, date)));
 }
Beispiel #9
0
 public WindowTravels(TravelLogic logic)
 {
     InitializeComponent();
     this.logic = logic;
     logger     = LogManager.GetCurrentClassLogger();
 }