public async Task <IActionResult> Create([Bind("Id,Name,Tag,IsPresent")] Participant participant)
        {
            if (ModelState.IsValid)
            {
                _context.Add(participant);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(participant));
        }
        public async Task <IActionResult> Create([Bind("Id", "Participant1Id", "Participant2Id", "Timestamp")] ConversationViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                var conversation = viewModel.ToConversation(_context);
                _context.Add(conversation);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(viewModel));
        }