public async Task <IActionResult> Approve(int id) { DBAccess db = new DBAccess(); var user = await _context.ApprovedUsers.FindAsync(id); db.ApproveFinalUser(id); _context.ApprovedUsers.Remove(user); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); }