Example #1
0
        //
        // GET: /Product/Edit/5

        public ActionResult Edit(int id)
        {
            tbl_product tbl_product = db.tbl_product.Single(t => t.product_id == id);

            ViewBag.types       = new SelectList(db.tbl_product_type.ToList(), "id", "name");
            ViewBag.push_levels = new SelectList(PushLevelModel.GetPushLevelList(), "level", "name");
            return(View(tbl_product));
        }
Example #2
0
        //
        // GET: /Product/Create

        public ActionResult Create()
        {
            ViewBag.types       = new SelectList(db.tbl_product_type.ToList(), "id", "name");
            ViewBag.push_levels = new SelectList(PushLevelModel.GetPushLevelList(), "level", "name");
            return(View());
        }