In this PR you should be able to view the products page, when you click on an individual product it will takes you to the products's detail view, where you will be able to add that product to an order. There is now logic that check for an open order and if one exists for that user, the item will be added as a new line item for the OrderProduct table. If no order exists, it will add the new order Id and create a new order for that user.
go to http://localhost:49863/products
choose a product you have created locally or the seeder created.
click the "Add To Order" button
It should redirect you to the Order Index page and display that order.
The date the order was created should now show and the details for the porducts on the order should show.
Todos (Checkmark what has been completed)
[ ] Tests
[ ] Documentation
Deploy Notes
you must have at least a product created to test.
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
List general components of the application that this PR will affect:
Order Controller,
Order Index View
Product Detail View
OrderViewModel
I had to change the required on the OrderModel, but Hannah said no new migration was needed.
Status
Choose: READY
Description
In this PR you should be able to view the products page, when you click on an individual product it will takes you to the products's detail view, where you will be able to add that product to an order. There is now logic that check for an open order and if one exists for that user, the item will be added as a new line item for the OrderProduct table. If no order exists, it will add the new order Id and create a new order for that user. go to http://localhost:49863/products
Todos (Checkmark what has been completed)
Deploy Notes
you must have at least a product created to test.
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
Then Open Visual Studio
Impacted Areas in Application
List general components of the application that this PR will affect: Order Controller, Order Index View Product Detail View OrderViewModel I had to change the required on the OrderModel, but Hannah said no new migration was needed.