private void OnLiftStateChange(object sender, LiftStateChangedEventArgs eventArgs) { var liftId = eventArgs.LiftId; var date = eventArgs.At; var message = eventArgs.Message; var liftLog = new LiftLog(date, message); _liftLogRepository.Log(liftId, liftLog); }
public LiftLogDto(LiftLog liftLog) { At = liftLog.At; Message = liftLog.Message; }
private void RecordNewCall(int id, int floor) { var log = new LiftLog(DateTime.UtcNow, $"Lift called to floor {floor}"); _liftLogRepository.Log(id, log); }