Open valincius opened 2 years ago
I can try this issue, but currently getting this: SocketException: No connection could be made because the target machine actively refused it.
HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:44388)
You need to run the front end and api projects at the same time. You can do so by setting multiple startup projects in VS or by launching both projects manually. @ofu997
Tried starting a nonasync method to handle a cart object, which resulted an object instance error since the page expects there to be a Model.Products property. Is there a way to include multiple page-handlers in the same form, since this would go with the existing OnPostPurchase ?
That OnPostPurchase was Ok because we the user didn’t need to stay on the same page. We want them to stay on the products page now, so you’d probably want to use JS (fetch) to send the request instead of posting it how we’re doing now.
An approach I found that uses CartItems as the model behind a Cart page. Downside is that selecting the quantity of items will not be on the Products page.
Well we will want something like that for the cart page, but here we want this similar functionality on the products page. If you need some guidance you can PM me on discord and I can try walking you through what’s needed here. Should be relatively simple. @ofu997
Given I am a customer When I view the product list Then I can choose a quantity (1-99) of any product Then I can add multiple products to a cart