public IActionResult Post([FromBody] Pedido pedido) { try { _pedidoAppService.SalvarPedido(pedido); return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status200OK)); } catch (Exception e) { return(StatusCode(Microsoft.AspNetCore.Http.StatusCodes.Status400BadRequest, e.Message)); } }