public ProdutoService(ApiContext contexto) { repository = new ProdutoRepo(contexto); }
public PedidoService(ApiContext contexto) { this.repository = new PedidoRepo(contexto); this.usuarioRepo = new UsuarioRepo(contexto); this.produtoRepo = new ProdutoRepo(contexto); }