public ActionResult Save(string groupIds, string roleId)
        {
            try
            {
                List <SysRoleGroupEntity> roleList = new List <SysRoleGroupEntity>();
                string[] list = groupIds.Split(',');

                for (int i = 0; i < list.Length; i++)
                {
                    if (list[i] != "")//报错角色模块集合
                    {
                        SysRoleGroupEntity rolegroup = new SysRoleGroupEntity();
                        rolegroup.RoleId  = roleId;
                        rolegroup.GroupId = list[i].Trim();
                        roleList.Add(rolegroup);
                    }
                }
                bool isOk = rolegroupLogic.SaveRoleGroup(roleList);
                if (isOk == true)
                {
                    return(Json("ok"));
                }
                else
                {
                    return(Json("no"));
                }
            }
            catch (Exception ex)
            {
                return(Json("no"));
            }
        }
 public ActionResult Edit(string roleid)
 {
     if (!string.IsNullOrEmpty(roleid))
     {
         SysRoleGroupEntity entity = new SysRoleGroupEntity(); //角色模块实体
         entity.RoleId  = roleid;
         entity.GroupId = "";
         return(View(entity));
     }
     return(View());
 }