Exemplo n.º 1
0
        public async Task <IActionResult> Connect([FromRoute] string id, [FromBody] ConnectNetworkDto network)
        {
            var request = new ConnectNetworkRequest(id, network);
            await _mediator.Send(request);

            return(Ok());
        }
 public ConnectNetworkRequest(string id, ConnectNetworkDto network)
 {
     Id      = id;
     Network = network;
 }