public ActionResult Detail(int id) { var model = PushService.FindById(id); ViewBag.type = ListToSelect(new Pharos.Logic.CommonDic().GetDicList(Logic.DicType.推送方式).Select(o => new SelectListItem() { Value = o.DicSN.ToString(), Text = o.Title }), "全部"); return(View(model)); }