Ejemplo n.º 1
0
        protected void btnRegTeam_Click(object sender, EventArgs e)
        {
            //CreateLeagueTeams(Team _teams)
            Team team = new Team();

            team.Name       = txtT_Name.Text;
            team.LeagueName = txtL_Name.Text;
            LeagueClient lc  = new LeagueClient();
            string       res = lc.CreateLeagueTeams(team);
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string TeamName   = Convert.ToString(Request.QueryString["teamName"]);
            string LeagueName = Convert.ToString(Session["LeagueName"]);
            Team   tm         = new Team();

            tm.Name       = TeamName;
            tm.LeagueName = LeagueName;
            tm.eDate      = DateTime.Now;
            // tm.sDate = DateTime.Now;
            LeagueClient lg  = new LeagueClient();
            string       res = lg.CreateLeagueTeams(tm);

            if (res.ToLower().Contains("success"))
            {
                //Pop up needed
                Response.Redirect("LeagueTeams.aspx");
            }
            else
            {
                //Pop up neeeded
                Response.Redirect("LeagueTeams.aspx");
            }
        }