BrokenShoeLeague.Web.API.Controllers.SeasonsController.GetMatchdays C# (CSharp) Метод

GetMatchdays() приватный Метод

private GetMatchdays ( int seasonId ) : IHttpActionResult
seasonId int
Результат IHttpActionResult
        public IHttpActionResult GetMatchdays(int seasonId)
        {
            if (!_brokenShoeLeagueRepository.SeasonExist(seasonId))
                return NotFound();

            var season = _brokenShoeLeagueRepository.GetSeasonById(seasonId);

            return Ok(season.Matchdays.Select(x => new MatchdayViewModel(x)));
        }