public ApplicationController()
 {
     this.creditCardService = new CreditCardService.CreditCardService();
     this.bookingService = new BookingService.BookingService();
     this.airportService = new AirportService.AirportService();
     this.hotelService = new HotelService.HotelService();
     this.bookingRepository = new BookingRepository();
     this.userRepository = new UserRepository();
 }
Esempio n. 2
0
 public static List<SelectListItem> GetHoteli()
 {
     List<TehHotel.Gui.Test.HotelService.Hotel> hoteli = new HotelService.HotelService().ListHotel().ToList();
     List<SelectListItem> sl = new List<SelectListItem>();
     foreach (TehHotel.Gui.Test.HotelService.Hotel h in hoteli)
     {
         SelectListItem i = new SelectListItem();
         i.Text = h.Ime;
         i.Value = h.Id.ToString();
         sl.Add(i);
     }
     return sl;
 }
Esempio n. 3
0
 public HotelService.Hotel[] ListHotel()
 {
     HotelService.HotelService client = new HotelService.HotelService();
     return client.ListHotel();
 }