/// <summary>
        /// 修改权限
        /// </summary>
        /// <param name="dto">传入权限信息</param>
        public void ModifyPermission(PermissionManage.PermissionDto dto)
        {
            Permission entity = _permissionRepository.Get(SafeConvert.ToInt64(dto.ParentId));

            entity.MenuId = dto.MenuId;
            _permissionRepository.Update(entity);
        }
        /// <summary>
        /// 删除权限
        /// </summary>
        /// <param name="dto">传入权限信息</param>
        public void DeletePermission(PermissionManage.PermissionDto dto)
        {
            Permission permission = _permissionRepository.Get(SafeConvert.ToInt64(dto.Id));

            _permissionRepository.Delete(permission);
        }
 /// <summary>
 /// 添加权限
 /// </summary>
 /// <param name="dto">传入权限信息</param>
 public void AddPermission(PermissionManage.PermissionDto dto)
 {
     Permission parent = _permissionRepository.Get(SafeConvert.ToInt64(dto.ParentId));
     //entity.Permission.Parent = parent;
     //_permissionExRepository.Add(entity);
 }