コード例 #1
0
        public ActionResult _CreateRole(string roleName)
        {
            RoleEditModel model = new RoleEditModel();

            if (!string.IsNullOrEmpty(roleName))
            {
                Role role = new Role();
                role = roleService.Get(roleName);
                if (role != null)
                {
                    model = role.AsEditModel();
                }
            }

            EditUserRole_GenerateFormItem();

            return(View(model));
        }