public void SaveVechicleOnDb(Car vehicle) { SetUpValidators(vehicle); if (!ParkingSpaceInParkingLot) { throw (new ParkingLotException("No Space")); } if (!AllowedbyId) { throw (new VehicleIdException("ByDay")); } if (!IsVehicleValidId) { throw (new VehicleIdException("ById")); } else { carDao.CreateCar(vehicle); } }