public TrackConnectionViewModel()
        {
            _trackConnection = new TrackConnection();
            _arduinoService  = Container.Resolve <IArduinoService>();

            ConnectToTrackCommand = new ConnectToTrackCommand(this);
            AddLaneCommand        = new AddLaneCommand(this);
            RemoveLaneCommand     = new RemoveLaneCommand(this);
        }
예제 #2
0
 public async Task <ActionResult <BoardViewModel> > Add([FromBody] AddLaneCommand command)
 {
     return(Ok(await Mediator.Send(command)));
 }