public ActionResult addAuthority(int?id = 0) { Authority model = new Authority(); if (id != 0) { model = _aBLL.GetById((int)id); } return(View(model)); }
/// <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)); }