Exemple #1
0
        public ActionResult Edit(int yhid)
        {
            ViewModels.YhEditDTO yheditdto = new ViewModels.YhEditDTO();

            Model.yh yh = dal.GetModel(yhid);
            //用户功能
            BLL.Yhbll yhbll = new BLL.Yhbll();
            List <ViewModels.YhgnDTO> yhgns = yhbll.getYhgnDTO(yhid);
            //用户角色
            List <ViewModels.YhjsDTO> yhjss = yhbll.getYhjsDTO(yhid);

            yheditdto.yh    = yh;
            yheditdto.yhgns = yhgns;
            yheditdto.yhjss = yhjss;

            return(View(yheditdto));
        }