C
C#3y ago
adoma

I need help with the last part of an assignment

I´m a student from Sweden studying c# and i´m making a product manager. The part i´m struggling with is removing a specific product from a list. How the console program works, we have a menu option 1-6 option 1 Create product option 2 display product option 3 Create category option 4 Place product in category option 5 show category and products in it
I don´t have a problem with removing the product from the product dictionary. But the problem is that the product i removed still shows up when i choose option number 5. sorry if my explaining is bad, English is my second language.
9 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
adoma
adomaOP3y ago
The removed product still shows up under the category yes Would have been easier if I could upload the code
Zendist
Zendist3y ago
Gist
Discover gists
GitHub Gist: instantly share code, notes, and snippets.
adoma
adomaOP3y ago
Ye I’ve made a repository will just link it
undisputed world champions
just a shot in the dark, but i guess you have to remove the product from the category, too not just from the product list/dict
adoma
adomaOP3y ago
Exactly
adoma
adomaOP3y ago
Gist
Product Manager
Product Manager. GitHub Gist: instantly share code, notes, and snippets.
Zendist
Zendist3y ago
@adoma you'll need to remove from the categories as well when removing an option from the product dictionary.
adoma
adomaOP3y ago
I’ve tried with categoryList.remove but it removes the whole category and every product in it
Want results from more Discord servers?
Add your server