public async Task <IActionResult> Edit(int id, [Bind("Id,Age,FirstName,LastName,Email,SerialNumber")] Submisssion submisssion) { if (id != submisssion.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(submisssion); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SubmisssionExists(submisssion.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(submisssion)); }