public async Task <IActionResult> Edit(int id, [Bind("Id,Nome,Cpf,Nascimento,Sexo,Endereco,Complemento,Bairro,Cidade,Estado,Email,Senha")] Client client) { if (id != client.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(client); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ClientExists(client.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(client)); }