コード例 #1
0
        public async Task <IActionResult> Create([Bind("Id,Nome,Cpf,Nascimento,Sexo,Endereco,Complemento,Bairro,Cidade,Estado,Email,Senha")] Client client)
        {
            if (ModelState.IsValid)
            {
                _context.Add(client);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(client));
        }