/// <summary> /// Get the camping that belongs to an event /// </summary> /// <returns>True if camping exist in databse false if not</returns> public bool GetCamping() { Camping Camping = DatabaseCreateEvent.GetCamping(this.Location); if (Camping != null) { this.Camping = Camping; return(true); } else { return(false); } }
/// <summary> /// Creates a new event in the database. /// </summary> /// <param name="Event">The event to be created as Event object.</param> /// <returns>Return true if it was created false if it was not.</returns> public bool CreateEvent(Event Event) { bool Check = DatabaseCreateEvent.CreateEvent(Event); return(Check); }