Example #1
0
 public HomeController()
 {
     _personService           = new PersonService();
     _roomService             = new RoomService();
     _guestService            = new GuestService();
     _guestReservationService = new GuestReservationService();
     _guestRoomService        = new GuestRoomService();
 }
Example #2
0
 public HotelAdminController()
 {
     _personService           = new PersonService();
     _roomService             = new RoomService();
     _roomTypeService         = new RoomTypeService();
     _guestService            = new GuestService();
     _guestRoomService        = new GuestRoomService();
     _businessAccountService  = new BusinessAccountService();
     _guestReservationService = new GuestReservationService();
     _transactionService      = new TransactionService();
     _guestRoomAccountService = new GuestRoomAccountService();
     _roomStatusService       = new RoomStatuService();
 }
 public CompanyAccountController()
 {
     int.TryParse(ConfigurationManager.AppSettings["HotelAccountsTime"].ToString(CultureInfo.InvariantCulture), out _hotelAccountsTime);
     _guestService                    = new GuestService();
     _businessAccountService          = new BusinessAccountService();
     _roomService                     = new RoomService();
     _guestRoomService                = new GuestRoomService();
     _guestReservationService         = new GuestReservationService();
     _guestRoomAccountService         = new GuestRoomAccountService();
     _personService                   = new PersonService();
     _personTypeService               = new PersonTypeService();
     _businessAccountCorporateService = new BusinessCorporateAccountService();
     _paymentService                  = new PaymentService();
 }