/// <summary> /// Registers a reservation with or without guests. Does not check for unique values, will retun false if the command does not complete. /// </summary> /// <param name="planeID">The plane identifier.</param> /// <param name="employeeID">The employee identifier.</param> /// <param name="destinationID">The destination identifier.</param> /// <param name="date">The date.</param> /// <param name="hasGuests">if set to <c>true</c> [has guests].</param> /// <param name="guestsList">The guest's identifier list.</param> /// <returns></returns> public static bool RegisterReservation(int planeID, int employeeID, int destID, DateTime date, bool hasGuests, List <int> guestList) { return(DBHandler.registerReservation(planeID, employeeID, destID, date, hasGuests, guestList)); }
/// <summary> /// Registers a reservation without guests. Does not check for unique values, will retun false if the command does not complete. /// </summary> /// <param name="planeID">The plane identifier.</param> /// <param name="employeeID">The employee identifier.</param> /// <param name="destinationID">The destination identifier.</param> /// <param name="date">The date.</param> /// <returns></returns> public static bool RegisterReservation(int planeID, int employeeID, int destID, DateTime date) { return(DBHandler.registerReservation(planeID, employeeID, destID, date)); }