public bool DeleteExistingMenuItemByName(string sideName) { SideFood foundSideContent = GetContentBySideFoodName(sideName); bool deletedResult = _sideFoodDirectory.Remove(foundSideContent); return(deletedResult); }
public bool AddContentToSideFood(SideFood sideContent) { int directoryLength = _sideFoodDirectory.Count(); _sideFoodDirectory.Add(sideContent); bool wasAdded = directoryLength + 1 == _sideFoodDirectory.Count(); return(wasAdded); }