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

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