public static TeamModel GetModel(Team team) { return(new TeamModel { FullName = team.FullName, ShortName = team.ShortName, ApiId = team.Id, ShirtUrl = team.ShirtUrl, Arena = ArenaFactory.GetModel(team.Arena) }); }
public static TeamModel GetModel(string fullName, string shortName, int apiId, string shirtUrl, Arena arena) { return(new TeamModel { FullName = fullName, ShortName = shortName, ApiId = apiId, ShirtUrl = shirtUrl, Arena = ArenaFactory.GetModel(arena) }); }