public IActionResult AddNinja(Ninja ninja)
 {
     if (ModelState.IsValid)
     {
         _ninjaFactory.CreateNinja(ninja);
         return(RedirectToAction("Main_Ninja"));
     }
     ViewBag.allNinjas = _ninjaFactory.GetAllNinjas();
     ViewBag.allDojos  = _ninjaFactory.GetAllDojos(); // Will be used for registering ninja to dojo
     return(View("Main_Ninja"));
 }
 public IActionResult Create(ninjas ninja)
 {
     ninjaFactory.CreateNinja(ninja);
     return(RedirectToAction("Index"));
 }