public void ProcessSpotUpdate(ISpotUpdate spotUpdate)
        {
            Carpark carpark = GetCarpark(spotUpdate.CarparkId);

            carpark.SpotData[spotUpdate.SpotId] = new ParkingSpotImpl()
            {
                SpotId      = spotUpdate.SpotId,
                LastUpdated = spotUpdate.UpdatedOn,
                SpotStatus  = spotUpdate.Status
            };
        }
 private void ProcessUpdate(ISpotUpdate spotUpdate)
 {
     logger.LogInformation("Processing message");
     this.carparkProvider.ProcessSpotUpdate(spotUpdate);
     this.carparkHub.Clients.All.SendAsync("NotifyParkingSpotUpdate", spotUpdate);
 }