public ActionResult Index(int wjid = 1) { var list = wjtmService.GetList(wjid); //问卷 var listWj = wjtmService.GetWjList(); //标签选项 var bqxx = new WjbqService().GetAllList(); ViewBag.ListBqxx = bqxx; ViewBag.ListWj = listWj; ViewBag.Wjid = wjid; return(View(list)); }
public ActionResult AddOrEdit(int id = 0, string yybh = "") { Wjtc tc = new Wjtc(); if (id > 0) { tc = wjtcService.GetEntity(id); } //套餐选项 var tcxx = wjtcService.GetTcSelect(yybh); ViewBag.Tcxx = tcxx; //标签选项 var bqxx = new WjbqService().GetAllList(); ViewBag.Bqxx = bqxx; ViewBag.Yybh = yybh; return(View(tc)); }