示例#1
0
        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));
        }
示例#2
0
        public ActionResult New(int id)
        {
            Vender vender = Vender.GetVender(id);

            return(View(vender));
        }