public IActionResult Ninja(int id) { var ninja = ninjaFactory.FindByID(id); if (ninja == null) { ViewBag.ninja = ninjaFactory.FindRogueNinjaByID(id); return(View("RogueNinja")); } else { ViewBag.ninja = ninjaFactory.FindByID(id); return(View()); } }
public IActionResult ShowNinja(int id) { Ninja DisplayNinja = new Ninja(); DisplayNinja = ninjaFactory.FindByID(id); DisplayNinja.dojo = dojoFactory.FindByID(DisplayNinja.dojo_id); return(View(DisplayNinja)); }
public IActionResult Show(int id) { Ninja ninja = ninjaFactory.FindByID(id); if (ninja.dojo_id > 0) { ninja.Dojo = dojoFactory.FindByID(ninja.dojo_id); } ViewBag.Ninja = ninja; return(View("Show")); }
public IActionResult Show(int id) { var ninja = ninjaFactory.FindByID(id); ViewBag.Name = ninja.Name; ViewBag.Level = ninja.Level; ViewBag.Description = ninja.Description; ViewBag.Dojo = ninja.DojoName; ViewBag.DojoId = ninja.DojoId; return(View()); }
public IActionResult Ninja(int id) { ViewBag.Ninja = ninjaFactory.FindByID(id); ViewBag.Dojo = dojoFactory.FindByID(ViewBag.Ninja.Dojo_id); return(View()); }
public IActionResult ShowNinja(int id) { ViewBag.Ninja = _ninjafactory.FindByID(id); return(View()); }
public IActionResult NinjaSingle(int id) { ViewBag.SingleNinja = ninjaFactory.FindByID(id); return(View()); }
public IActionResult ShowNinja(int Id) { ViewBag.ninja = ninjaFactory.FindByID(Id); return(View("NinjaShow")); }
public IActionResult ViewNinja(int id) { ViewBag.ninja = ninjaFactory.FindByID(id); return(View("Ninja")); }