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