/// <summary author="Richard Carroll" created="2019/03/01"> /// Takes a Vehicle argument and passes it to the Data /// Access Layer which attempts to insert it into the /// Database. /// Returns the result. /// </summary> public bool CreateGuestVehicle(GuestVehicle vehicle) { bool result = false; try { if (vehicle.isValid()) { result = (1 == _guestVehicleAccessor.InsertGuestVehicle(vehicle)); } else { throw new ArgumentException("Data for this Vehicle is Invalid: \n" + vehicle.ToString()); } } catch (Exception ex) { ExceptionLogManager.getInstance().LogException(ex); throw ex; } return(result); }