public IActionResult ShowNinja(int ninja_id)
        {
            var ninja = _ninjaFactory.FindNinja(ninja_id);
            var dojo  = _dojoFactory.FindOneById(ninja.Dojo_Id);

            ninja.Dojo = dojo;
            return(View(ninja));
        }
Example #2
0
 public IActionResult Ninja(int id)
 {
     ViewBag.Ninja = _ninjafactory.FindNinja(id);
     return(View("Ninja"));
 }