public function createlottery() { $league_id = $_GET['league_id']; $lottery_name = $_GET['lottery_name']; $newLottery = Lottery::createLottery($league_id, $lottery_name); return $newLottery; }