Beispiel #1
0
        public LeagueMemberEntity MapToMemberEntity(LeagueMemberDataDTO source, LeagueMemberEntity target = null)
        {
            if (source == null)
            {
                return(null);
            }
            if (target == null)
            {
                target = GetMemberEntity(source);
            }

            target.DanLisaId = source.DanLisaId;
            target.DiscordId = source.DiscordId;
            target.Firstname = source.Firstname;
            target.IRacingId = source.IRacingId;
            target.Lastname  = source.Lastname;

            return(target);
        }
Beispiel #2
0
        public LeagueMemberDataDTO MapToMemberDataDTO(LeagueMemberEntity source, LeagueMemberDataDTO target = null)
        {
            if (source == null)
            {
                return(null);
            }

            if (target == null)
            {
                target = new LeagueMemberDataDTO();
            }

            MapToMemberInfoDTO(source, target);
            target.DanLisaId = source.DanLisaId;
            target.DiscordId = source.DiscordId;
            target.Firstname = source.Firstname;
            target.IRacingId = source.IRacingId;
            target.Lastname  = source.Lastname;
            target.MemberId  = source.MemberId;

            return(target);
        }