public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                NotFound();
            }
            Emailnfos emailnfos = await _context.Emailnfos.FindAsync(id);

            if (emailnfos == null)
            {
                NotFound();
            }
            return(View(emailnfos));
        }
        public async Task <IActionResult> Edit(int?id, Emailnfos emailnfos)
        {
            if (!ModelState.IsValid)
            {
                return(View(emailnfos));
            }
            Emailnfos emailnfosdb = await _context.Emailnfos.FindAsync(id);

            emailnfosdb.Email    = emailnfos.Email;
            emailnfosdb.Password = emailnfos.Password;

            await _context.SaveChangesAsync();

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