public IActionResult Index()
        {
            ViewBag.Ninjas = ninjaFactory.GetAll();
            System.Console.WriteLine(ViewBag.Ninjas);
            ViewBag.Dojos = dojosFactory.GetAll();

            IEnumerable <ninjas> ninjas = ninjaFactory.GetAll();

            foreach (var ninja in ninjas)
            {
                // System.Console.WriteLine(ninja.dojo.name);
            }

            return(View());
        }
Beispiel #2
0
 public IActionResult NinjaHome()
 {
     ViewBag.ninjas = ninjaFactory.GetAll();
     ViewBag.dojos  = dojoFactory.GetAll();
     return(View("ninjas"));
 }