Closed vmural closed 7 years ago
Hi @vmural can you share more info about this PR?
The "Remove From Cart" UI doesn't work and @vmural is trying to fix it. Currently, the RemoveFromCart method in ShoppingCartController returns a ShoppingCartRemoveViewModel as a JsonResult that has properties which are PascalCase (i.e., Message, CartTotal, CartCount, ItemCount, DeleteId). However, the jQuery ajax call gets the data as camelCase (i.e., message, cartTotal, cartCount, itemCount, deleteId). As a result, removing an item from the cart isn't working correctly.
Looking at @vmural's commit, shows that he is missing '}' which is causing an even bigger error.
I'll try to fork this repo and commit the fix.
Closing this; we'll look at https://github.com/aspnet/MusicStore/pull/762 instead. Thanks!
Hi @vmural, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.
TTYL, DNFBOT;