Ejemplo n.º 1
0
        /// <summary>
        /// Clone object
        /// </summary>
        /// <returns>A clone of the entity</returns>
        public DishEntity Clone()
        {
            var DishClone = new DishEntity()
            {
                Name           = this.Name,
                Price          = this.Price,
                KitchenOrderId = this.KitchenOrderId,
                PassedQT       = this.PassedQT
            };

            return(DishClone);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Add a dish for the order
 /// </summary>
 /// <param name="dish">Dish entity</param>
 public void AddDish(DishEntity dish)
 {
     this.orderedList.Add(dish);
 }