예제 #1
0
 public IActionResult NinjaShow(int id)
 {
     // ViewBag.ninja_id = id;
     ViewBag.ninja     = ninjaFactory.FindById(id);
     ViewBag.ninjaDojo = ninjaFactory.FindNinjaDojo(ViewBag.ninja.dojos_id);
     return(View("NinjaShow"));
 }
예제 #2
0
 public IActionResult ninja_page(int id)
 {
     ViewBag.ninjas = ninjaFactory.FindById(id);
     Console.WriteLine(ViewBag.ninjas);
     return(View());
 }
예제 #3
0
 public IActionResult FindById(int id)
 {
     ViewBag.Ninjas = ninjaFactory.FindById(id);
     ViewBag.Dojos  = dojoFactory.FindById(id);
     return(View("NinjaOne"));
 }