Exemple #1
0
        public IHttpActionResult GetContextTypes(string idOrName)
        {
            PokeApiClient pokeApiClient = new PokeApiClient();
            ContestType   contestType   = pokeApiClient.GetContestTypeByNameOrId(idOrName);

            if (contestType == null)
            {
                return(NotFound());
            }
            return(Ok(contestType));
        }