public void AddPizza(Library.TransactionOrderLib order) { TransactionOrder transactionOrder = new TransactionOrder(); transactionOrder.Size = order.Size; transactionOrder.Topping1 = order.Topping1; transactionOrder.Topping2 = order.Topping2; transactionOrder.Topping3 = order.Topping3; transactionOrder.Topping4 = order.Topping4; transactionOrder.Topping5 = order.Topping5; transactionOrder.Cost = order.Cost; }
private TransactionOrderLib CreateTransactionOrderFromDB(TransactionOrder order) { return(new TransactionOrderLib(order.PizzaId, order.Size, order.Topping1, order.Topping2, order.Topping3, order.Topping4, order.Topping5, order.Cost)); }