Example #1
0
        /// <summary>
        /// Updates the asynchronous.
        /// </summary>
        /// <param name="hotelroomType">The stylemodel.</param>
        /// <returns>
        /// UpdateAsync
        /// </returns>
        /// <exception cref="ArgumentNullException">category</exception>
        public async Task <int> UpdateAsync(PackageHotelRoomTypeModel hotelroomType)
        {
            if (hotelroomType == null)
            {
                throw new ArgumentNullException("city");
            }

            return(await this.hotelroomType.UpdateAsync(hotelroomType));
        }
Example #2
0
        /// <summary>
        /// Deletes the asynchronous.
        /// </summary>
        /// <param name="roomtype">The travelstyle.</param>
        /// <returns>
        /// DeleteAsync
        /// </returns>
        /// <exception cref="ArgumentNullException">category</exception>
        public async Task <int> DeleteAsync(PackageHotelRoomTypeModel roomtype)
        {
            if (roomtype == null)
            {
                throw new ArgumentNullException("roomtype");
            }

            return(await this.hotelroomType.DeleteAsync(roomtype));
        }