public async Task <IActionResult> Create([Bind("MeetingId,Conductor,OpeningHymn,OpeningPrayer,SacramentHymn,IntermediateHymn,ClosingHymn,ClosingPrayer,Date")] Meeting meeting)
        {
            if (ModelState.IsValid)
            {
                meeting.MeetingId = Convert.ToInt32(RouteData.Values["id"]);
                _context.Add(meeting);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Create", "Speakers", new { id = meeting.MeetingId }));
            }
            return(View(meeting));
        }
        public async Task <IActionResult> Create([Bind("SpeakerId,FirstName,LastName,Subject,MeetingId")] Speakers speakers)
        {
            if (ModelState.IsValid)
            {
                speakers.MeetingId = Convert.ToInt32(RouteData.Values["id"]);
                _context.Add(speakers);
                await _context.SaveChangesAsync();

                return(RedirectToAction("Index", "Meetings", new { id = speakers.MeetingId }));
            }
            ViewData["MeetingId"] = new SelectList(_context.Meeting, "MeetingId", "ClosingPrayer", speakers.MeetingId);
            return(View(speakers));
        }