Exemplo n.º 1
0
        /// <summary>
        /// Creates the booking.
        /// </summary>
        /// <param name="booking">The booking.</param>
        /// <returns>
        /// Booking Id
        /// </returns>
        /// <exception cref="System.ArgumentNullException"></exception>
        public int CreateBooking(Booking booking)
        {
            if (booking == null)
            {
                throw new ArgumentNullException(nameof(booking));
            }

            return(_bookingRepository.AddBookingAndCommit(booking));
        }