public async Task <IActionResult> Edit(int id, [Bind("Id,AllowedForNewUsers,MaxFailedAccessAttempts,DefaultLockoutTimeSpan")] LockoutOption lockoutOption)
        {
            _securitySettingService.UpdateSecuritySetting(lockoutOption);
            //if (id != lockoutOption.Id)
            //{
            //    return NotFound();
            //}

            //if (ModelState.IsValid)
            //{
            //    try
            //    {
            //        _context.Update(lockoutOption);
            //        await _context.SaveChangesAsync();
            //        //_identityOptions.Lockout.MaxFailedAccessAttempts = lockoutOption.MaxFailedAccessAttempts;
            //    }
            //    catch (DbUpdateConcurrencyException)
            //    {
            //        if (!LockoutOptionExists(lockoutOption.Id))
            //        {
            //            return NotFound();
            //        }
            //        else
            //        {
            //            throw;
            //        }
            //    }
            //    return RedirectToAction(nameof(Index));
            //}
            return(View(lockoutOption));
        }
        public async Task <IActionResult> Edit(int id, [Bind("Id,AllowedForNewUsers,MaxFailedAccessAttempts,DefaultLockoutTimeSpan")] LockoutOption lockoutOption)
        {
            _securitySettingService.UpdateSecuritySetting(lockoutOption);

            return(View(lockoutOption));
        }