/// <inheritdoc /> public async Task <SilentProtocolEntry?> Add(AddSilentProtocolEntryRequest data) { try { var newEntry = _silentProtocolEntryFactory.Create(data.Suspect, data.Entry, data.TimeStamp, data.Reporter); await _silentProtocolEntryRepository.Save(newEntry); return(newEntry); } catch (Exception ex) { _logger.LogWarning("Unable to add new entry to silent protocol. Reason: '{msg}'", ex.Message); return(null); } }
public async Task Save(SilentProtocolEntry entry) { await LogSaving(entry); await _subject.Save(entry); }