From cfa62a43a14666baae85a6baaa827835e63d5c94 Mon Sep 17 00:00:00 2001 From: Bruno Date: Mon, 6 May 2024 15:57:06 -0300 Subject: [PATCH] fix --- OpenAdm.Application/Services/Pedidos/CreatePedidoService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenAdm.Application/Services/Pedidos/CreatePedidoService.cs b/OpenAdm.Application/Services/Pedidos/CreatePedidoService.cs index d982b66..a332126 100644 --- a/OpenAdm.Application/Services/Pedidos/CreatePedidoService.cs +++ b/OpenAdm.Application/Services/Pedidos/CreatePedidoService.cs @@ -52,8 +52,8 @@ public async Task CreatePedidoAsync(IList ite pedido.ProcessarItensPedido(itensPedidoModels); - await _processarPedidoService.ProcessarCreateAsync(pedido.Id); await _pedidoRepository.AddAsync(pedido); + await _processarPedidoService.ProcessarCreateAsync(pedido.Id); return new PedidoViewModel().ForModel(pedido); }