public async Task <IActionResult> Create([Bind("Id,Name,Email,Title,Department")] AttendeeModel attendeeModel) { if (ModelState.IsValid) { _context.Add(attendeeModel); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(attendeeModel)); }