public IHttpActionResult Delete(int id)
{
var season = _brokenShoeLeagueRepository.GetSeasonById(id);
if (season == null)
return NotFound();
_brokenShoeLeagueRepository.RemoveSeason(season);
try
{
_brokenShoeLeagueRepository.SaveChanges();
}
catch (DbUpdateConcurrencyException)
{
return NotFound();
}
return Ok(new SeasonViewModel(season));
}