Пример #1
0
 public JsonResult Pokemons(Pokemon pokemon)
 {
     pokemons.Adicionar(pokemon);
     Response.StatusCode = (int)HttpStatusCode.Created;
     return(Json(new { id = pokemon.Id }));
 }