//Delete a menu object public bool RemoveMenuItem(CafeMenu menuItem) { int beforeRemoval = _menuItems.Count; _menuItems.Remove(menuItem); bool wasRemoved = (_menuItems.Count < beforeRemoval) ? true : false; return(wasRemoved); }
//Add a menu object to the menu list public bool AddMenuItem(CafeMenu menuItem) { int beforeAdded = _menuItems.Count; _menuItems.Add(menuItem); bool wasAdded = (_menuItems.Count > beforeAdded) ? true : false; return(wasAdded); }