public IActionResult Post(int idComanda, int idProduto, int qtde)
        {
            var comandaItem = new ItensComanda(idComanda, idProduto, qtde);

            _DbContext.ComandaItens.Add(comandaItem);
            _DbContext.SaveChanges();

            return(NoContent());
        }
Example #2
0
 public void AdicionarItensComanda(ItemComanda itemComanda)
 {
     ItensComanda.Add(itemComanda);
 }