public IActionResult Meeting(MeetingViewModel data) { if (string.IsNullOrEmpty(data.Input) || data.Tracks < 1) { var output = new MeetingViewModel() { Output = "No data was passed!" }; return(View(output)); } var input = data.Input; var tracks = data.Tracks; _meeting.InitializeTracks(tracks); var inputList = _meeting.Read(input); _meeting.RegisterTalks(inputList); _meeting.Schedule(); string result = _meeting.GetSchedule(); data.Output = result; return(View(data)); }