C
C#16mo ago
EliasGPS

✅ 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
EliasGPS
EliasGPS16mo ago
that controller looks as follows
EliasGPS
EliasGPS16mo ago
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:
EliasGPS
EliasGPS16mo ago
EliasGPS
EliasGPS16mo ago
this is my constructor of the ShoppingCart:
EliasGPS
EliasGPS16mo ago
EliasGPS
EliasGPS16mo ago
EliasGPS
EliasGPS16mo ago
i foudn something it always pass 0 has parameter from my view to my AddToCart action it worked solved /solved
Want results from more Discord servers?
Add your server
More Posts
✅ If else statement problemEven or odd number I got a problem to write an app to specify every digit from a number of 4 digits❔ Razor Pages: Temporary Sites like Doodle Surveys with an Share Link?Hey everyone, is it Possible in Razor Pages to create "temporary" Pages?` I would like to create som✅ nuget naming nuances - Microsoft.Extensions.Configuration.Yaml doesn't belong to MicrosoftCan package names be whatever the uploader desires and there's no indication of hierarchy, as far as❔ Creating a base abstract class to ensure a set of derived classes receive similar dependencies?Hi, working on creating a class library and I have a set of classes, let's call them PlainPizza, Pep❔ Using razor pages to generate a list and send to code fileSo I have a table called GenericEvents, and I have various activities that use this generic event toUpdate JSON File with new values without overwriting existing dataHello, So I'm currently developing a Discord bot that stores values such as 'settings' for each gu❔ How to add a list of type of another class in c#?I'm doing a program where I need to store the a list of the Person class in the class of People. A P❔ just a quick help```cs using System; using System.Collections.Generic; using System.Linq; class Program { static✅ Multi-targeting NetFx and NetCore - Targeting wrong version?# History My last post was a bit of a mess so I've come here to help clean it up a bit. I have a p❔ Need help with giant amount of data stored in clipboardI am trying to keep a history of the user's clipboard locally, but if I load into memory a giant cli