ASP.App_Code.Controllers.DataController.MakeSession C# (CSharp) Method

MakeSession() public method

public MakeSession ( CurrentSession currentSession, CurrentSpeaker currentSpeaker ) : Session
currentSession Models.CurrentSession
currentSpeaker Models.CurrentSpeaker
return ASP.App_Code.Controllers.Json.Session
        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;
        }