public IActionResult Edit(string id, ApplicationUser applicationUser) { if (id != applicationUser.Id) { return(NotFound()); } if (ModelState.IsValid) { _db.EditUser(applicationUser); return(RedirectToAction(nameof(Index))); } return(View(applicationUser)); }