ActivEarth.Groups.GroupsDisplayTable.joinClick C# (CSharp) Method

joinClick() private method

Method called when a Join Button is clicked allowing the User to join the Group.
private joinClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void joinClick(object sender, EventArgs e)
        {
            Button clickedButton = (Button)sender;

            Group currentGroup = GroupDAO.GetGroupFromGroupId(Convert.ToInt32(clickedButton.ID));
            currentGroup.Join(userDetails);
            GroupDAO.UpdateGroup(currentGroup);

            Response.Redirect("~/Groups/Groups.aspx");
        }