예제 #1
0
        /// <inheritdoc/>
        public IChallenge GetById(int id)
        {
            var chall = ChallengeRepository.GetById(id);

            if (chall == null)
            {
                throw new MalformedException("Challenge does not exist");
            }
            return(chall);
        }