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