Exemple #1
0
        public async Task <IActionResult> CadastrarMarcaVeiculo(MarcaVeiculoModel marcaVeiculoModel, CancellationToken ctx)
        {
            var result = await _veiculoApplication.CadastrarMarcaVeiculo(marcaVeiculoModel, ctx);

            if (result.Valid)
            {
                return(Created("/veiculos/marcas", result.Object));
            }

            return(UnprocessableEntity(result.Notifications));
        }