/// <summary> /// 为角色添加功能菜单 /// </summary> /// <param name="RoleId"></param> /// <param name="menuDtos"></param> /// <returns></returns> public MessageModel AddRoleMenu(string RoleId, List <SysMenuDto> menuDtos) { return(new MessageModel { Result = sysRoleDAL.AddRoleMenu(RoleId, AutoMapper.Mapper.Map <List <SysMenu> >(menuDtos)) }); }
/// <summary> /// 为角色添加功能菜单 /// </summary> /// <param name="roleId"></param> /// <param name="menuDtos"></param> /// <returns></returns> public HandleResult <bool> AddRoleMenu(string roleId, List <SysMenuDto> menuDtos) { return(new HandleResult <bool> { Result = sysRoleDAL.AddRoleMenu(roleId, Mapper.Map <List <SysMenu> >(menuDtos)) }); }