public TrackConnectionViewModel() { _trackConnection = new TrackConnection(); _arduinoService = Container.Resolve <IArduinoService>(); ConnectToTrackCommand = new ConnectToTrackCommand(this); AddLaneCommand = new AddLaneCommand(this); RemoveLaneCommand = new RemoveLaneCommand(this); }
public async Task <ActionResult <BoardViewModel> > Add([FromBody] AddLaneCommand command) { return(Ok(await Mediator.Send(command))); }