예제 #1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var user = await _context.Users.FindAsync(id);

            string result = userApi.DeleteUserData(id);

            _context.Users.Remove(user);
            await _context.SaveChangesAsync();

            return(RedirectToAction(nameof(Index)));
        }