i dont understand the rooting in ASP.net ; im missing something with this ? this is my root :
routes.MapRoute( name: "ChampionID", url: "Champion/ChampionById/id", defaults: new { controller = "Champion", action = "ChampionById", id = "5" } ); this is my Controler :
public class ChampionController : Controller { public ActionResult ChampionById(string x) { ChampionId ch = new ChampionId(); ch.Id = x; return View(ch); } if you can help me with this i will be thankful
ChampionById, do you have a view with that name?url: "Champion/ChampionById/{id}",