ActivEarth.Server.Service.Competition.ChallengeManager.GetChallenge C# (CSharp) Method

GetChallenge() public static method

Retrieves an active challenge based on its ID.
public static GetChallenge ( int id, int userId ) : Challenge
id int ID of the Challenge to be retrieved.
userId int Optional. UserID to load progress from.
return ActivEarth.Objects.Competition.Challenges.Challenge
        public static Challenge GetChallenge(int id, int userId = 0)
        {
            return ChallengeDAO.GetChallengeFromChallengeId(id, userId);
        }