Last active
August 29, 2015 14:16
-
-
Save forsythetony/32f4938464c5119ebf95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
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
When I try setting
u.Status = newStatus
I get the error 'Cannot implicitly convert type String to APS.SeatGEN.UserStatus'