Ejemplo n.º 1
0
        // GET: BaseManage/Orgnizations
        public ActionResult Index()
        {
            Paging <Orgnizations> page = new Paging <Orgnizations>();

            page.PageSize = 5;
            db.FindPageList(page, null);

            return(View(page.Items));
        }
Ejemplo n.º 2
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));
        }