Example #1
0
        public Speaker MapSpeakerDtoToSpeaker(SpeakerDto currentSpeaker)
        {
            currentSpeaker.ThrowIfNull("speaker");

            var speaker = new Speaker {
                Id          = currentSpeaker.ImportId,
                Name        = currentSpeaker.Name,
                Description = currentSpeaker.Description,
                Twitter     = currentSpeaker.Twitter,
                LinkedIn    = currentSpeaker.LinkedIn,
                ContactUrl  = currentSpeaker.ContactUrl,
                ImageUrl    = currentSpeaker.ImageUrl
            };

            return(speaker);
        }
Example #2
0
        public Speaker MapSpeakerDtoToSpeaker(SpeakerDto currentSpeaker)
        {
            currentSpeaker.ThrowIfNull ("speaker");

            var speaker = new Speaker {
                Id = currentSpeaker.ImportId,
                Name = currentSpeaker.Name,
                Description = currentSpeaker.Description,
                Twitter = currentSpeaker.Twitter,
                LinkedIn = currentSpeaker.LinkedIn,
                ContactUrl = currentSpeaker.ContactUrl,
                ImageUrl = currentSpeaker.ImageUrl
            };

            return speaker;
        }