public void Save(SystemError systemError) { this.systemErrorMapper.Save(systemError); }
public void Log(SystemError systemError) { Application application = this.applicationRepository.Find(systemError.ApplicationId); if (application != null) { DeviceInfo device = this.deviceRepository.Find(systemError.DeviceId); if (device != null && this.settings.DataLoggingRecordSystemErrors) { this.systemErrorRepository.Save(systemError); } else { throw new NoDeviceException(systemError.DeviceId); } } else { throw new InactiveApplicationException(systemError.ApplicationId); } }