public async Task <IActionResult> Edit(
            int id,
            [Bind("Id,date,OpeningSong,SacramentSong,IntermediateSong,ClosingSong")] Sacrament sacrament,
            string[] selectedSpeakers,
            String[] SpeakerTopic,
            string Presiding,
            string Conducting,
            string Invocation,
            string Benediction
            )
        {
            if (id != sacrament.Id)
            {
                return(NotFound());
            }
            GetMembersForDropdown();
            sacrament.Presiding = await getMember(Presiding);

            sacrament.Conducting = await getMember(Conducting);

            sacrament.Invocation = await getMember(Invocation);

            sacrament.Benediction = await getMember(Benediction);

            if (ModelState.IsValid)
            {
                _context.Attach(sacrament);
                ;
                await UpdateSpeakers(sacrament, selectedSpeakers, SpeakerTopic);

                try
                {
                    _context.Update(sacrament);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!SacramentExists(sacrament.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(sacrament));
        }