careless-gazelles / Bangazon-Site

0 stars 1 forks source link

Kc prod detail view #41

Closed krissycaron closed 7 years ago

krissycaron commented 7 years ago

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.

git fetch --all
git branch -avv
git checkout kc-prodDetailView
git pull origin kc-prodDetailView

Then Open Visual Studio

dotnet restore
dotnet run

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.

joeybiotti commented 7 years ago

Everything works great except the Order Created date. Change it DateTime.Now and it'll work great. Thanks fellow New Englander!!! GOOOO PATS GUY!

adamreidelbach commented 7 years ago

👍

sleuthy commented 7 years ago

WONDEFUL 👍