示例#1
0
            public void Handle(AddHistoryCommand message)
            {
                if (!_database.IsOpen)
                {
                    throw new DatabaseClosedException();
                }

                var history = _database.AddHistory(message.Entry.Id);

                message.Entry.History.Add(_mapper.Map <EntryVm>(history));
            }