protected override void BuildLeague(ITicket ticket, ITicketHelper ticketHelper) { if (ticket == null || ticketHelper == null) { return; } base.BuildLeague(ticket, ticketHelper); var arenaName = ticketHelper.GetLeagueNameById(ticket.BetCheck); var fightNo = string.Format(CockFightingLang.FightNo, ticket.MatchId); Template.League.LeagueName.leagueName = string.Format("{0} {1}", arenaName, fightNo); }
/// <summary> /// Builds the league. /// </summary> /// <param name="ticket">The ticket.</param> /// <param name="ticketHelper">The ticket helper.</param> protected virtual void BuildLeague(ITicket ticket, ITicketHelper ticketHelper) { if (Template.League == null || Template.League.LeagueName == null) { return; } Template.League.LeagueName.leagueName = ticketHelper.GetLeagueNameById(ticket.LeagueId); }