Example #1
0
        // Create item based on Menu Item
        public OrderItem(MenuFoodItem m)
        {
            _id = m._id;

            foreach (Ingredient i in m.ingredients)
            {
                ingredients.Add(i._id);
            }

            name = m.name;

            price = m.price;

            special_instruct = m.special_instruct;

            paid = m.paid;

            category = m.category;

            isHot = m.isHot;
        }
Example #2
0
        // Copy constructor
        public MenuFoodItem(MenuFoodItem m)
        {
            _id = m._id;

            ingredients = m.ingredients;

            name = m.name;

            picture = m.picture;

            nutrition = m.nutrition;

            price = m.price;

            description = m.description;

            special_instruct = m.special_instruct;

            paid = m.paid;

            category = m.category;

            isHot = m.isHot;
        }