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);
}