public IActionResult Index()
 {
     return(View(new NinjaIndex()
     {
         Ninjas = _ninjaFactory.AllNinjas(),
         Dojos = _dojoFactory.AllDojos()
     }));
 }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            Ninja newNinja = new Ninja();

            ViewBag.allNinjas = ninjaFactory.AllNinjas();
            ViewBag.allDojos  = dojoFactory.AllDojos();
            return(View(newNinja));
        }