// 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; }
public ActionResult Index(HyraPokedexVM hyraPokedexVM, string search, string clear) { if (!string.IsNullOrEmpty(search)) { pokeVM.searchPokemon = hyraPokedexVM.searchPokemon; } else { ResetView(); } return(View(pokeVM)); }