Beispiel #1
0
        // GET: BaseManage/Departments/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Departments departments = db.Find((int)id);

            if (departments == null)
            {
                return(HttpNotFound());
            }
            OrgnizationManage     _orgMg = new OrgnizationManage();
            Paging <Orgnizations> _page  = new Paging <Orgnizations>();

            _orgMg.FindPageList(_page, null);
            ViewBag.temp = new SelectList(_page.Items, "OrgNo", "OrgName");
            //ViewData["temp"] =new SelectList(_page.Items, "OrgNo", "OrgName");
            return(View(departments));
        }