Example #1
0
        /// <summary>
        /// Inserts the asynchronous.
        /// </summary>
        /// <param name="category">The region model.</param>
        /// <returns>
        /// InsertAsync
        /// </returns>
        /// <exception cref="ArgumentNullException">category</exception>
        public async Task <int> InsertAsync(PackageHotelCategoryModel category)
        {
            if (category == null)
            {
                throw new ArgumentNullException("region");
            }

            return(await this.hotelCategory.InsertAsync(category));
        }
Example #2
0
        /// <summary>
        /// Updates the asynchronous.
        /// </summary>
        /// <param name="category">The stylemodel.</param>
        /// <returns>
        /// UpdateAsync
        /// </returns>
        /// <exception cref="ArgumentNullException">category</exception>
        public async Task <int> UpdateAsync(PackageHotelCategoryModel category)
        {
            if (category == null)
            {
                throw new ArgumentNullException("city");
            }

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

            return(await this.hotelCategory.DeleteAsync(hotelcategory));
        }