Esempio n. 1
0
        // Hotel Rooms HotelSearchRoom
        public HotelSearchRoom GetAvailableRoom(string SessionId, int ResIndex, string HotelCode, string SID)
        {
            //var roomexists=
            //if (true)
            //{

            //}
            var Result = RoomAvailabiltyService.Availabilty(SessionId, ResIndex, HotelCode, SID);
            //map tbo rooms rsp to general res
            HotelSearchRoom hotelSearchRoom = RoomMapper.MapTboRoomRspTogenrl(Result, SID);
            // apply business rules on rooms
            //ApplyRoomsBusiness(rooms);
            //save rooms in DB
            SearchRepo manager = new SearchRepo();

            manager.SaveSearchRooms(hotelSearchRoom.Packages, SID, HotelCode);

            var Res = manager.GetTBOHotelDetails(hotelSearchRoom, HotelCode, SID);


            // return Res;
            return(hotelSearchRoom);
        }