private void SaveMessage(string message, LogType type) { var logValue = new LogValue { Id = Guid.NewGuid(), Message = message, Type = type }; this.logsRepository.AddLogValue(logValue); }
public LogValue AddLogValue(LogValue logValue) { var createdLogValue = this.context.LogValues.Add(logValue); this.context.SaveChanges(); return createdLogValue; }