Exemple #1
0
        // No Update Required

        // Delete
        public bool RemoveItemFromMenu(string meal)
        {
            MenuContent content = GetContentByMeal(meal);

            if (content == null)
            {
                return(false);
            }

            int initialCount = _listOfContent.Count;

            _listOfContent.Remove(content);

            if (initialCount > _listOfContent.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
 //Create
 public void AddMenuContent(MenuContent content)
 {
     _listOfContent.Add(content);
 }