Skip to content

Instantly share code, notes, and snippets.

@forsythetony
Last active August 29, 2015 14:16
Show Gist options
  • Save forsythetony/32f4938464c5119ebf95 to your computer and use it in GitHub Desktop.
Save forsythetony/32f4938464c5119ebf95 to your computer and use it in GitHub Desktop.
Portal m_tempPortal = new Portal();
UserCollection m_instructors = m_tempPortal.Instructors;
foreach (User u in m_instructors)
{
String newStatus = (newSetting ? "Inactive" : "Active");
u.Status = new UserStatus(newStatus);
u.Update();
}
@forsythetony
Copy link
Author

I've updated it and I'm not getting the error anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment