public ActionResult AutopartForm(int orderID) { List <Autopart> autoparts = dbWrapper.GetAllAutoparts(); var model = new AutopartsOrderInfo { orderID = orderID, autoparts = autoparts }; return(View(model)); }