public IActionResult Index() { return(View(new DojoIndex() { Dojos = _dojoFactory.AllDojos() })); }
public IActionResult Index() { return(View(new NinjaIndex() { Ninjas = _ninjaFactory.AllNinjas(), Dojos = _dojoFactory.AllDojos() })); }
public IActionResult Index() { Ninja newNinja = new Ninja(); ViewBag.allNinjas = ninjaFactory.AllNinjas(); ViewBag.allDojos = dojoFactory.AllDojos(); return(View(newNinja)); }