void onBtnClub(ClubInfo club) { ClubDetail cd = GameObject.Find("PClubDetail").GetComponent <ClubDetail>(); cd.UpdateEvents += refresh; cd.enter(club.id, club.is_admin); }
// Get : Join public ActionResult Join(int id) { //var service = CreateClubService(_userId); // Change the Db table to include student id? JoinClub already has this, as does student. // How to relate student id to the user? Take this in from the register panel? //service.CreateNewClubMember(id); //return RedirectToAction("Index"); // Get the club name from the id var _userId = Guid.Parse(User.Identity.GetUserId()); var service = CreateClubService(_userId); ClubDetail club = service.GetClubById(id); JoinClub clubToJoin = new JoinClub { StudentId = 0, ClubTitle = club.Title, ClubId = club.ClubId }; return(View(clubToJoin)); }