예제 #1
0
        public bool RemoveMeal(CafeMeal meal)
        {
            int initialCount = _listOfMeals.Count();

            _listOfMeals.Remove(meal);
            if (initialCount > _listOfMeals.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
 public void AddNewMeal(CafeMeal meal)
 {
     _listOfMeals.Add(meal);
 }