示例#1
0
        /// <summary>
        /// Maps the specified team.
        /// </summary>
        /// <param name="team">The team.</param>
        /// <returns>Mapped team</returns>
        public static Team Map(this Api.Team team)
        {
            if (team == null)
            {
                return null;
            }

            return new Team
            {
                Id = team.Id,
                TeamName = team.TeamName
            };
        }
 public Promise GoToTeam(Api.Team team)
 {
     return(Next <TeamController>().ShowTeam(team.Id));
 }