Пример #1
0
 public ReservationController(
     IRepositoryBase<customer_view> customers,
     IRepositoryBase<ipmevent> ipmevents,
     IRepositoryBase<placeinmap> placesinmap,
     IRepositoryBase<rvsite_available_view> rvsites_available,
     IRepositoryBase<selecteditem> selecteditems,
     IRepositoryBase<reservationitem> reservationitems,
     IRepositoryBase<payment> payments,
     IRepositoryBase<paymentreservationitem> paymentsreservationitems,
     IRepositoryBase<session> sessions,
     IRepositoryBase<site_description_rate_view> sites_description_rate
     )
 {
     this.customers = customers;
     this.ipmevents = ipmevents;
     this.payments = payments;
     this.paymentsreservationitems = paymentsreservationitems;
     this.placesinmap = placesinmap;
     this.selecteditems = selecteditems;
     this.reservationitems = reservationitems;
     this.rvsites_available = rvsites_available;
     this.sites_description_rate = sites_description_rate;
     this.sessions = sessions;
     sessionService = new SessionService(
         this.sessions,
         this.customers
         );
     paymentService = new PaymentService(
         this.selecteditems,
         this.reservationitems,
         this.payments,
         this.paymentsreservationitems
         );
 }
Пример #2
0
 public PaymentController(IRepositoryBase<payment> payments,
     IRepositoryBase<customer_view> customers,
     IRepositoryBase<staff_view> users,
     IRepositoryBase<reasonforpayment> reasonsforpayment,
     IRepositoryBase<paymentmethod> paymentmethods,
     IRepositoryBase<selecteditem> selecteditems,
     IRepositoryBase<reservationitem> reservationitems,
     IRepositoryBase<paymentreservationitem> paymentsreservationitems,
     IRepositoryBase<payment_view> payments_view,
 IRepositoryBase<session> sessions
     )
 {
     this.sessions = sessions;
     this.payments = payments;
     this.customers = customers;
     this.users = users;
     this.reasonsforpayment = reasonsforpayment;
     this.paymentmethods = paymentmethods;
     this.selecteditems = selecteditems;
     this.reservationitems = reservationitems;
     this.paymentsreservationitems = paymentsreservationitems;
     this.payments_view = payments_view;
     sessionService = new SessionService(
         this.sessions,
         this.customers,
         this.users
         );
     paymentService = new PaymentService(
         this.selecteditems,
         this.reservationitems,
         this.payments,
         this.paymentsreservationitems
         );
 }//end Constructor
Пример #3
0
 public LoginController(
     IRepositoryBase<staff_view> users,
     IRepositoryBase<customer_view> customers,
     IRepositoryBase<ipmevent> ipmevents,
     IRepositoryBase<placeinmap> placesinmap,
     IRepositoryBase<coordinate> coordinates,
     IRepositoryBase<sitetype> sitetypes,
     IRepositoryBase<siterate> siterates,
     IRepositoryBase<styleurl> stylesurl,
     IRepositoryBase<rvsite_available_view> rvsites_available,
     IRepositoryBase<selecteditem> selecteditems,
     IRepositoryBase<reservationitem> reservationitems,
     IRepositoryBase<payment> payments,
     IRepositoryBase<person> persons,
     IRepositoryBase<paymentreservationitem> paymentsreservationitems,
     IRepositoryBase<session> sessions,
     IRepositoryBase<site_description_rate_view> sites_description_rate
     )
 {
     this.users = users;
     this.customers = customers;
     this.ipmevents = ipmevents;
     this.payments = payments;
     this.persons = persons;
     this.paymentsreservationitems = paymentsreservationitems;
     this.placesinmap = placesinmap;
     this.coordinates = coordinates;
     this.sitetypes = sitetypes;
     this.siterates = siterates;
     this.stylesurl = stylesurl;
     this.selecteditems = selecteditems;
     this.reservationitems = reservationitems;
     this.rvsites_available = rvsites_available;
     this.sites_description_rate = sites_description_rate;
     this.sessions = sessions;
     sessionService = new SessionService(
         this.sessions,
         this.customers,
         this.users
         );
     paymentService = new PaymentService(
         this.selecteditems,
         this.reservationitems,
         this.payments,
         this.paymentsreservationitems
         );
 }//end Constructor