コード例 #1
0
        public ActionResult Create(string id)
        {
            if (!string.IsNullOrWhiteSpace(id))
            {
                using (SysMenuBLL bll = new SysMenuBLL())
                {
                    SysMenu entityId = bll.GetById(id);
                    if (entityId != null)
                    {
                        SysOperation entity = new SysOperation();
                        entity.SysMenuId = id + '&' + entityId.Name;
                        return View(entity);
                    }
                }
            }

            return View();
        }
コード例 #2
0
        public ActionResult Create(string id)
        {
            if (!string.IsNullOrWhiteSpace(id))
            {
                using (SysMenuBLL bll = new SysMenuBLL())
                {
                    SysMenu entityId = bll.GetById(id);
                    if (entityId != null)
                    {
                        SysOperation entity = new SysOperation();
                        entity.SysMenuId = id + '&' + entityId.Name;
                        return(View(entity));
                    }
                }
            }

            return(View());
        }
コード例 #3
0
        public ActionResult Create(string id)
        {
            if (null != id)
            {
                using (SysMenuBLL bll = new SysMenuBLL())
                {
                    SysMenu entityId = bll.GetById(id);
                    if (entityId != null)
                    {
                        SysRole entity = new SysRole();
                        entity.SysMenuId = id + '&' + entityId.Name;
                        return(View(entity));
                    }
                }
            }

            return(View());
        }