示例#1
0
        public async Task <IActionResult> ListarTodosVeiculos(CancellationToken ctx)
        {
            var result = await _veiculoApplication.ListarTodos(ctx);

            if (result.Valid && result.Object.Any())
            {
                return(Ok(result.Object));
            }

            return(NoContent());
        }