public Pokemon(int id, string name, PokemonType firstPokemonType, PokemonType secondPokemonType = PokemonType.None, LegendaryType legendaryType = LegendaryType.None, bool hasFemale = false) : base(id, name, PokemonHelper.GetGenerationTypeByID(id), firstPokemonType, secondPokemonType) { LegendaryType = legendaryType; Sprite = PokemonIconPool.GetPokemonSprite(ID, string.Empty); ShinySprite = PokemonIconPool.GetPokemonSprite(ID, string.Empty, true); if (hasFemale) { Female = new FemaleMon(this); } }
public IActionResult LegendaryType(LegendaryType legendaryType) { this.dataService.DeleteLegendaryType(legendaryType.Id); return(this.RedirectToAction("LegendaryTypes", "Admin")); }
public IActionResult LegendaryType(int id) { LegendaryType model = this.dataService.GetObjectByPropertyValue <LegendaryType>("Id", id); return(this.View(model)); }