public IActionResult DeleteMatchOdds(int matchId, int id) { if (!_matchInfoRepository.MatchExists(matchId)) { return(NotFound()); } var matchOddsEntity = _matchInfoRepository.GetMatchOddsForMatch(matchId, id); if (matchOddsEntity == null) { return(NotFound()); } _matchInfoRepository.DeleteMatchOdd(matchOddsEntity); _matchInfoRepository.Save(); //match.MatchOdds.Remove(matchOddsFromStore); return(NoContent()); }