1
I am developing a project that asks that items from a pizzeria be added to an order, not being a shopping cart, generating the order as if it were a cashier program.
I don’t know how to add items to this request in a web project, some hint?
Recalling that the order should receive N pizzas and N drinks and the solution is being developed in visual studio 2013
follows the code!
 public class Pizza
 {
 public int PizzaID { get; set; }
    public string Sabor { get; set; }
    public double PrecoPizza { get; set; }
   public string Tamanho { get; set; }    
}
  public class Bebida
{
    public int BebidaID { get; set; }
    public string TipoBebida { get; set; }
    public string Sabor { get; set; }
    public string Tamanho { get; set; }
    public double PrecoBebida { get; set; }
   }
 public class Pedido
{
    public int PedidoID { get; set; }
    public double ValorTotal { get; set; }
    public string Status { get; set; }
    public int PedidoAtivo { get; set; }
    public string DescricaoPedido { get; set; }
    public virtual Pessoa Pessoa { get; set; }
    public int PessoaID { get; set; }
    public virtual ICollection<Bebida> Bebida { get; set; }
    public int BebidaID { get; set; }
    public virtual ICollection<Pizza> Pizza { get; set; }
    public int PizzaID { get; set; }
    public Pedido()
    {
        this.Pessoa = Pessoa;
        this.Bebida = new List<Bebida>();
        this.Pizza = new List<Pizza>();
    }
But how to place the request on a single screen?
– user3014578
Ah, that’s several other questions, but my suggestion is to start reading these questions, in which I answer how to do something very similar to what you want.
– Leonel Sanches da Silva