Esempio n. 1
0
 public ImageSpeaker(Speaker speaker)
 {
     Id = speaker.Id;
     Name = speaker.Name;
     Description = speaker.Description;
     ImageUrl = speaker.ImageUrl;
 }
Esempio n. 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;
        }