public void AddNewVehicle() { string licenseNumber = GetLicenseNumber(); bool vehicleExist = m_Garage.VehicleExistInGarage(licenseNumber); if (vehicleExist) { m_Garage.setInProgressStatus(licenseNumber); string errMsg = string.Format("Vehicle {0} is already in the Garage, status updated to InProgress..", licenseNumber); throw new ArgumentException(errMsg); } else { GarageLogic.eVehicleType vehicleType = GetVehicleType(); GarageLogic.Record record = m_Garage.AddNewVehicle(licenseNumber, vehicleType); UpdateRecordWithRelevantInformation(record); } }