public async Task <IActionResult> Edit(Adminstrator currentAdmin) { if (ModelState.IsValid) { _adb.Update(currentAdmin); await _adb.SaveChangesAsync(); return(RedirectToAction("AIndex")); } return(View(currentAdmin)); }