public async Task <IActionResult> Edit(int id, [Bind("Id,Pontos,DataJogo")] Games games) { if (id != games.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(games); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!GamesExists(games.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(List))); } return(View(games)); }