/// <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)); }
/// <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)); }
/// <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)); }