✅ ERROR: An exception was thrown while attempting to evaluate a LINQ query parameter expression
when a user clicks in this button. He will be go to the AddToCart() method in my ShoppingCartController.
7 Replies
that controller looks as follows
to i'm only intrested in the AddToCart() method
than i'm calling the AddToCart method in my shoppingcart and that code looks as follows:
this is my constructor of the ShoppingCart:
i foudn something
it always pass 0 has parameter
from my view to my AddToCart action
it worked
solved
/solved