Ejemplo n.º 1
0
        // Reassigning the URL value. Perhaps unnecessary
        private void UpdateMasterList(ref HyraPokedexVM pokeVM, int pokeMasterIndex, Pokemon updatedPokemon)
        {
            string url = pokeVM.masterListPokemon[pokeMasterIndex].URL;

            pokeVM.masterListPokemon[pokeMasterIndex] = updatedPokemon;
            pokeVM.masterListPokemon[pokeMasterIndex].DataRetrieved = true;
            pokeVM.masterListPokemon[pokeMasterIndex].URL           = url;
        }
Ejemplo n.º 2
0
 public ActionResult Index(HyraPokedexVM hyraPokedexVM, string search, string clear)
 {
     if (!string.IsNullOrEmpty(search))
     {
         pokeVM.searchPokemon = hyraPokedexVM.searchPokemon;
     }
     else
     {
         ResetView();
     }
     return(View(pokeVM));
 }