private async Task <Models.Events.Event> GetAlarmEvent(IEventData data) { // Load sensor var sensor = await _sensorRepository.GetAsync(data.DeviceId); // load zone var zone = await _zoneRepository.GetAsync(sensor.Zone_Id); // Load event info return(data.ToAlarmEvent(sensor.ToAlarmSensor(), zone.ToAlarmZone())); }