예제 #1
0
 public IActionResult banish(long id)
 {
     ninjaFactory.Banish(id);
     return(RedirectToAction("Dojos"));
 }
예제 #2
0
 public IActionResult Banish(int id, int dojo_id)
 {
     ninjaFactory.Banish(id);
     return(Redirect($"/dojo/{dojo_id}"));
 }
예제 #3
0
 public IActionResult Banish(int id)
 {
     ViewBag.Dojo = ninjaFactory.Banish(id);
     return(RedirectToAction("Dojo", id));
 }