public void EndParkingSession(ParkingSession parkingSession, Exit exit)
 {
     parkingSession.End(exit);
     var storageParkingSession = _mappingEngine.Map<Storage.ParkingSession>(parkingSession);
     _parkingSessionRepository.Update(storageParkingSession);
     _parkingSessionRepository.Save();
 }
 public void End(Exit exit)
 {
     Exit = exit;
     ParkingPeriod = new ParkingPeriod(ParkingPeriod.Start, DateTime.Now);
 }