Esempio n. 1
0
        public int BookRoom(string userName, string password, int roomId, string roomNumber,int hotelId, DateTime travelDate, bool isLocked, string passengerSSN, string updatedUser)
        {
            try
            {
                HotelTSWebServices.SOAPHeaderService service = new HotelTSWebServices.SOAPHeaderService();
                HotelTSWebServices.UserCredentials user = new HotelTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return service.BookRoom(roomId, roomNumber, hotelId, travelDate, isLocked, passengerSSN, updatedUser);
            }
            catch (Exception ex)
            { throw ex; }
        }
Esempio n. 2
0
        public int BookRoom(string userName, string password, int roomId, string roomNumber, int hotelId, DateTime travelDate, bool isLocked, string passengerSSN, string updatedUser)
        {
            try
            {
                HotelTSWebServices.SOAPHeaderService service = new HotelTSWebServices.SOAPHeaderService();
                HotelTSWebServices.UserCredentials   user    = new HotelTSWebServices.UserCredentials();
                user.userName = userName;
                user.password = password;

                service.UserCredentialsValue = user;

                return(service.BookRoom(roomId, roomNumber, hotelId, travelDate, isLocked, passengerSSN, updatedUser));
            }
            catch (Exception ex)
            { throw ex; }
        }