예제 #1
0
        public async Task <IActionResult> Edit(Adminstrator currentAdmin)
        {
            if (ModelState.IsValid)
            {
                _adb.Update(currentAdmin);
                await _adb.SaveChangesAsync();

                return(RedirectToAction("AIndex"));
            }
            return(View(currentAdmin));
        }