Пример #1
0
        //delete
        public bool RemoveContentFromList(string mealname)
        {
            MenuContent content = GetContentByMealName(mealname);

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

            int startingCount = _listOfMenuConent.Count;

            _listOfMenuConent.Remove(content);

            if (startingCount < _listOfMenuConent.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }