public void RegisterScooter(DateTime registerDate, ScooterState state, string stationId) { Station station = ecoScooter.GetStation(stationId); if (loggedEmployee == null) { throw new ServiceException("Debe haber iniciado sesion como empleado para regisstrar un scooter"); } else if (!Scooter.ValidRegisterDate(registerDate)) //futuro error { throw new ServiceException("Debe introducir una fecha valida"); } else if (state == ScooterState.available && ecoScooter.GetStation(stationId) == null) { throw new ServiceException("Debes introducir un id valido para colocar el scooter"); } else { ecoScooter.AddScooter(registerDate, state, station); saveChanges(); } }