public CurrentSpeaker GetSpeaker(CurrentSession currentSession, List<CurrentSpeaker> speakers) { return speakers .FirstOrDefault( currentSpeaker => currentSpeaker.SpeakerKey == currentSession.SpeakerKey); }
public Json.Session MakeSession(CurrentSession currentSession, CurrentSpeaker currentSpeaker) { Json.Session mySession = new Json.Session(); mySession.session = currentSession.Title; mySession.time = currentSession.SessionTime; mySession.desc = currentSession.Description; mySession.room = currentSession.Room; mySession.speaker = new Json.Speaker(); mySession.speaker.name = currentSpeaker.SpeakerName; mySession.speaker.location = currentSpeaker.CityState; mySession.speaker.bio = currentSpeaker.SpeakerBio; mySession.speaker.img = currentSpeaker.HeadshotFile; mySession.speaker.web = currentSpeaker.WebSite; return mySession; }