//Update -> This is not required for the challenge //Delete public bool RemoveMealFromList(int mealId) { MealItem meal = GetMealById(mealId); if (meal == null) { return(false); } int initialcount = _listOfMeals.Count(); _listOfMeals.Remove(meal); if (initialcount > _listOfMeals.Count) { return(true); } else { return(false); } }
//Create public void AddMealToList(MealItem newMeal) { _listOfMeals.Add(newMeal); }