Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildProduto(): Produto {
- const newProduto = new Produto();
- newProduto.nome = this.nomeSelected;
- newProduto.materiaisIDs = this.getMateriaisIds();
- newProduto.categoriaID = this.categoriaSelected.id;
- newProduto.preco = this.precoSelected;
- newProduto.altura = this.getDimensions(this.possiblesHeights);
- newProduto.profundidade = this.getDimensions(this.possiblesDepths);
- newProduto.largura = this.getDimensions(this.possiblesWidths);
- newProduto.restricoes = this.getRestricoes();
- this.getComponentesIds().then(response => newProduto.componentesIDs = response);
- // newProduto.componentesIDs = this.getComponentesIds();
- return newProduto;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement