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); }
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; }