Exemplo n.º 1
0
        public async Task <IActionResult> Disconnect()
        {
            var result = await _bus.Send(DisconnectCommand.Create());

            if (result)
            {
                return(Ok());
            }
            return(BadRequest(result.FailureReason));
        }