BrokenShoeLeague.Web.API.Controllers.SeasonsController.GetSeason C# (CSharp) Method

GetSeason() private method

private GetSeason ( int id ) : IHttpActionResult
id int
return IHttpActionResult
        public IHttpActionResult GetSeason(int id)
        {
            if (!_brokenShoeLeagueRepository.SeasonExist(id))
                return NotFound();

            var response = new SeasonViewModel(_brokenShoeLeagueRepository.GetSeasonById(id));

            return Ok(response);
        }