/// <summary> /// 更新UserRole /// </summary> /// <param name="userRoleDto">UserRoleDTO</param> /// <param name="userRole">UserRole</param> private void UpdateUserRole(UserRoleDTO userRoleDto, UserRole userRole) { // 更新UserRole //UserFactory.SetUserRole(userRole, userRoleDto.UserId, userRoleDto.RoleId); }
/// <summary> /// 插入UserRole /// </summary> /// <param name="user">User</param> /// <param name="userRoleDto">UserRoleDTO</param> private static void InsertUserRole(User user, UserRoleDTO userRoleDto) { user.AddNewUserRole(userRoleDto.RoleId); }