Exemplo n.º 1
0
        public async Task <IActionResult> DevolverVeiculo(DevolucaoInputModel devolucaoInput, CancellationToken ctx)
        {
            var result = await _veiculoApplication.DevolverVeiculo(devolucaoInput, ctx);

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

            return(UnprocessableEntity(result.Notifications));
        }