public IActionResult UpdateMatchOdd(int matchId, int id, [FromBody] MatchOddsUpdateDto matchOdds) { if (!_matchInfoRepository.MatchExists(matchId)) { return(NotFound()); } var matchOddsEntity = _matchInfoRepository.GetMatchOddsForMatch(matchId, id); if (matchOddsEntity == null) { return(NotFound()); } _mapper.Map(matchOdds, matchOddsEntity); _matchInfoRepository.UpdateMatchOddsForMatch(matchId, matchOddsEntity); _matchInfoRepository.Save(); return(NoContent()); }