public ActionResult AutopartAdd(int orderID, int autopartID, int hours, int quantity) { Order_Autopart oa = new Order_Autopart { order_id = orderID, autopart_id = autopartID, hours = hours, quantity = quantity }; dbWrapper.AddAutoPartOrder(oa); return(RedirectToAction("AutoPartEdit", new { orderID = orderID })); }