public async Task <IActionResult> Create([Bind("ID,MeetingDate,Conductor,OpeningHymn,Invocation,SacramentHymn,ClosingHymn,Benediction,Notes")] Meeting meeting, Speaker speaker) { if (ModelState.IsValid) { _context.Add(meeting); speaker.Name = Request.Form["Name"]; _context.AddRange(speaker); SpeakingAssignment topic = new SpeakingAssignment(); topic.Topic = Request.Form["Topic"]; topic.MeetingID = meeting.ID; topic.SpeakerID = speaker.ID; _context.AddRange(topic); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(meeting)); }