public async Task <IActionResult> Edit(int id, [Bind("ScannedID,Username,EmailID,Password,ComparePassword,TemplateFormatDB")] FingerprintModel fingerprintModel)
        {
            if (id != fingerprintModel.ScannedID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    db.Update(fingerprintModel);
                    await db.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FingerprintModelExists(fingerprintModel.ScannedID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(fingerprintModel));
        }