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

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

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

            return(await this.holidayRepository.DeleteAsync(travelstyle));
        }