public static long SaveRideTeamRecord(RepeatedField <BattleLeaderboardUnitInfo> data) { var record = ComponentFactory.CreateWithId <RideTeamRecord>(IdGenerater.GenerateId()); record.members = data.Aggregate(new RepeatedField <MemberBrief>(), (list, item) => { list.Add(item.ToMemberBrief()); return(list); }); record.createAt = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); UserDataHelper.UpsertRideTeamRecord(record).Coroutine(); return(record.Id); }