コード例 #1
0
        public bool DeleteExistingMenuItemByName(string sideName)
        {
            SideFood foundSideContent = GetContentBySideFoodName(sideName);
            bool     deletedResult    = _sideFoodDirectory.Remove(foundSideContent);

            return(deletedResult);
        }
コード例 #2
0
        public bool AddContentToSideFood(SideFood sideContent)
        {
            int directoryLength = _sideFoodDirectory.Count();

            _sideFoodDirectory.Add(sideContent);
            bool wasAdded = directoryLength + 1 == _sideFoodDirectory.Count();

            return(wasAdded);
        }