Esempio n. 1
0
 /// <summary>
 ///     更新OrganizationRole
 /// </summary>
 /// <param name="organizationRoleDto">OrganizationRoleDTO</param>
 /// <param name="organizationRole">OrganizationRole</param>
 private void UpdateOrganizationRole(OrganizationRoleDTO organizationRoleDto, OrganizationRole organizationRole)
 {
     // 更新OrganizationRole
     OrganizationFactory.SetOrganizationRole(organizationRole, organizationRoleDto.OrganizationId,
         organizationRoleDto.RoleId);
 }
Esempio n. 2
0
 /// <summary>
 ///     插入OrganizationRole
 /// </summary>
 /// <param name="organization">Organization</param>
 /// <param name="organizationRoleDto">OrganizationRoleDTO</param>
 private void InsertOrganizationRole(Organization organization, OrganizationRoleDTO organizationRoleDto)
 {
     // 添加OrganizationRole
     var organizationRole = organization.AddNewOrganizationRole();
     OrganizationFactory.SetOrganizationRole(organizationRole, organizationRoleDto.OrganizationId,
         organizationRoleDto.RoleId);
 }