public ActionResult Show(int id) { Vender thisVender = Vender.GetVender(id); List <Order> thisVendersOrders = thisVender.OrdersList; Dictionary <string, object> orderDetails = new Dictionary <string, object>() { { "Vender", thisVender }, { "Orders", thisVendersOrders } }; return(View(orderDetails)); }
public ActionResult New(int id) { Vender vender = Vender.GetVender(id); return(View(vender)); }