public IActionResult recruit(long id, long dojos_id) { ninjaFactory.Recruit(id, dojos_id); return(RedirectToAction("Ninja")); }
public IActionResult Recruit(int id, int dojo_id) { ninjaFactory.Recruit(id, dojo_id); return(Redirect($"/dojo/{dojo_id}")); }
public IActionResult Recruit(int id, int dojoid) { ViewBag.Dojo = ninjaFactory.Recruit(id, dojoid); return(RedirectToAction("Dojo", id)); }