コード例 #1
0
ファイル: SeasonResourceFactory.cs プロジェクト: bouwe77/fmg
        public static SeasonResource Create(Season season, SeasonLinks seasonLinks)
        {
            var seasonResource = new SeasonResource(seasonLinks)
             {
            Name = season.Name
             };

             return seasonResource;
        }
コード例 #2
0
ファイル: SeasonResource.cs プロジェクト: bouwe77/fmg
 public SeasonResource(SeasonLinks seasonLinks)
     : base(seasonLinks)
 {
 }
コード例 #3
0
ファイル: GameController.cs プロジェクト: bouwe77/fmg
        private SeasonResource GetSeasonResource(Season currentSeason, Team team)
        {
            var seasonLinks = new SeasonLinks(currentSeason.Id, team.CurrentLeagueCompetitionId, team.Id);
             var seasonResource = SeasonResourceFactory.Create(currentSeason, seasonLinks);

             return seasonResource;
        }