示例#1
0
        // GET: Admin/Order/Edit/5
        public ActionResult Edit(long id)
        {
            long?selectedId = null;
            var  dao        = new  CustomerModel();

            ViewBag.CustomerID = new SelectList(dao.GetList(), "CustomerID", "CustomerID", selectedId);
            var Udao = new UserDAO();

            ViewBag.Username = new SelectList(Udao.GetAccountList(), "Username", "Username", selectedId);
            return(View(new  OrderModel().GetOrder(id)));
        }
示例#2
0
        // GET: Admin/Order/Create
        public ActionResult Create()
        {
            long?selectedId = null;
            var  dao        = new CustomerModel();

            ViewBag.CustomerID = new SelectList(dao.GetList(), "CustomerID", "CustomerID", selectedId);
            var Udao = new UserDAO();

            ViewBag.Username = new SelectList(Udao.GetAccountList(), "Username", "Username", selectedId);
            return(View());
        }