Esempio 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);
        }
 /// <summary>
 /// Add a dish for the order
 /// </summary>
 /// <param name="dish">Dish entity</param>
 public void AddDish(DishEntity dish)
 {
     this.orderedList.Add(dish);
 }