public async Task Handle(AssignAgentToLocationCommand command) { Location location = await _session.Get <Location>(command.Id); location.AddAgent(command.AgentID); await _session.Commit(); }
public async Task Handle(AssignAgentToLocationCommand command) { Location location = await _session.Get <Location>(command.Id); location.AddAgent(command.AgentID); await _session.Commit(); }