Example #1
0
        private BusinessEntityProperty CreateExPropNonLang(HotelPropertyKeyName hotelPropertyKeyName, string PropertyValue)
        {
            var exPropNonLang = new BusinessEntityProperty();

            exPropNonLang.Category         = (int)HotelPropertyCategory.HotelConvenient;
            exPropNonLang.PropertyKey      = (int)hotelPropertyKeyName;
            exPropNonLang.PropertyValue    = PropertyValue;
            exPropNonLang.Language         = Languages.VN;
            exPropNonLang.BusinessEntityId = this.Id;
            return(exPropNonLang);
        }
Example #2
0
        public BusinessEntityProperty CreateReservationPolicy(string language, int?businessEntityId)
        {
            var bep = new BusinessEntityProperty();

            bep.Category         = (int)HotelPropertyCategory.HotelPolicy;
            bep.PropertyKey      = (int)HotelPropertyKeyName.ReservationPolicy;
            bep.PropertyValue    = ReservationPolicy;
            bep.Language         = language;
            bep.BusinessEntityId = businessEntityId;
            return(bep);
        }
Example #3
0
        public BusinessEntityProperty CreateCancellationPolicy(string language, int?businessEntityId)
        {
            var bep = new BusinessEntityProperty();

            bep.Category         = (int)RestaurantPropertyCategory.RestaurantPolicy;
            bep.PropertyKey      = (int)RestaurantPropertyKeyName.CheckInPolicy;
            bep.PropertyValue    = _CancellationPolicy;
            bep.Language         = language;
            bep.BusinessEntityId = businessEntityId;
            return(bep);
        }
Example #4
0
        public BusinessEntityProperty CreateChildAndExtraBedRoomPolicy(string language, int?businessEntityId)
        {
            var bep = new BusinessEntityProperty();

            bep.Category         = (int)HotelPropertyCategory.HotelPolicy;
            bep.PropertyKey      = (int)HotelPropertyKeyName.ChildAndExtraBedRoomPolicy;
            bep.PropertyValue    = ChildAndExtraBedRoomPolicy;
            bep.Language         = language;
            bep.BusinessEntityId = businessEntityId;
            return(bep);
        }