public Add ( |
||
device | ||
return | void |
public void Log(Error error) { Application application = this.applicationRepository.Find(error.ApplicationId); if (application != null) { DeviceInfo device = this.deviceRepository.Find(error.DeviceId); if (device != null) { error.Add(device); ErrorSummary errorSummary = new ErrorSummary(error); this.errorRepository.Save(error); this.errorRepository.Save(errorSummary); } else { throw new NoDeviceException(error.DeviceId); } } else { throw new InactiveApplicationException(error.ApplicationId); } }