public void BanOrUnban(User user) { if (user.IsBanned == true) { user.IsBanned = Banned.unbanUser(); } else { user.IsBanned = Banned.banUser(); } db.SaveChanges(); }