public IActionResult showdojo(int id) { System.Console.WriteLine(id); ViewBag.dojo = _dojofactory.GetDojoById(id); // ViewBag.rogues = dojofactory.GetRogueNinjas(); return(View("dojoshow", id)); }
public IActionResult Show(int id) { return(View(new ShowDojo() { Dojo = _dojoFactory.GetDojoById(id), RogueNinjas = _ninjaFactory.RogueNinjas() })); }