public async Task <IActionResult> Index([Bind("Name,SignedDate")] Guest guest) { if (ModelState.IsValid) { _context.Add(guest); await _context.SaveChangesAsync(); //return RedirectToAction(nameof(Index)); return(View(guest)); } return(View(guest)); }
public async Task Save() { await _db.SaveChangesAsync(); }