Пример #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);
        }
Пример #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;
        }