private Model.ConcreateOdd CreateConcreateOdd(Bookmaker bookmaker, double odd) { var genericOdd = new Model.ConcreateOdd() { OddsBeforeCommission = odd, CommissionPct = (double)(bookmaker.CurrentCommission ?? 0.0m), DecimalOdds = odd * (1 - (double)(bookmaker.CurrentCommission ?? 0.0m)), BookmakerName = bookmaker.BookmakerName, Source = "Tennis Data Odds", TimeStamp = CouponDate, Priority = bookmaker.Priority }; return(genericOdd); }
private Model.ConcreateOdd CreateConcreateOdd(Bookmaker bookmaker, double odd) { var genericOdd = new Model.ConcreateOdd() { OddsBeforeCommission = odd, CommissionPct = (double)(bookmaker.CurrentCommission ?? 0.0m), DecimalOdds = odd * (1 - (double)(bookmaker.CurrentCommission ?? 0.0m)), BookmakerName = bookmaker.BookmakerName, Source = "Tennis Data Odds", TimeStamp = CouponDate, Priority = bookmaker.Priority }; return genericOdd; }