Esempio n. 1
0
        public ActionResult addAuthority(int?id = 0)
        {
            Authority model = new Authority();

            if (id != 0)
            {
                model = _aBLL.GetById((int)id);
            }
            return(View(model));
        }
Esempio n. 2
0
        /// <summary>
        /// 篷布图片详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult PengInfo(int?id = 0)
        {
            Authority        model    = new Authority();
            List <Authority> authlist = new List <Authority>();

            authlist         = authbll.getAll();
            ViewBag.Authlist = authlist;
            model            = authbll.GetById((int)id);
            return(View(model));
        }