public IActionResult Main_Ninja()
 {
     ViewBag.allNinjas = _ninjaFactory.GetAllNinjas();
     ViewBag.allDojos  = _ninjaFactory.GetAllDojos(); // Will be used for registering ninja to dojo
     return(View());
 }
Example #2
0
 public IActionResult Ninjas()
 {
     ViewBag.allNinjas = _ninjafactory.GetAllNinjas();
     ViewBag.allDojos  = _dojofactory.GetAllDojos();
     return(View("Ninjas"));
 }