phase 09; understand DATA_MODEL.md itempriceid.
user picks an item; you insert OrderItem with valid ItemPriceID and Quantity; redirect details.
- get: build list of purchasable rows — at minimum each row shows item name + itempriceid as hidden or route.
- choose pricing rule: which
ItemPricerow for “now” (document in comment). - post:
new OrderItem { OrderID = id, ItemPriceID = ..., Quantity = n, ExtendedPrice = ... }. SaveChanges();RedirectToAction("Details", new { id }).
refresh details; line persists; totals plausible.
- quantity default 0
- wrong price row — extended price does not match unit * qty
why does schema use ItemPriceID instead of raw ItemID?