/// <inheritdoc/> public IChallenge GetById(int id) { var chall = ChallengeRepository.GetById(id); if (chall == null) { throw new MalformedException("Challenge does not exist"); } return(chall); }