public OddSerializationList TransformData(List <OddValue> oddsValues)
        {
            OddSerializationList temperaryModels = new OddSerializationList();
            List <IGrouping <int, OddValue> > a  = oddsValues.GroupBy(x => x.Group).ToList();

            foreach (var oddsValue in a)
            {
                OddSerializationModel tempModel = new OddSerializationModel();
                foreach (var oddValue in oddsValue)
                {
                    tempModel.HomeTeam = oddValue.TeamsLink.HomeTeam;
                    tempModel.AwayTeam = oddValue.TeamsLink.AwayTeam;
                    if (String.IsNullOrWhiteSpace(oddValue.Date) == false)
                    {
                        tempModel.Date = oddValue.Date;
                    }
                    tempModel.Id      = oddValue.OddValueId;
                    tempModel.Country = oddValue.DuelLink.MatchLink.CountryLink.Name;
                    tempModel.Match   = oddValue.DuelLink.MatchLink.Name;

                    if (oddValue.Tab == "Home/Away")
                    {
                        tempModel.OddsHome               = oddValue.Highest1;
                        tempModel.OddsAway               = oddValue.Highest2;
                        tempModel.AverOddsHome           = oddValue.Average1;
                        tempModel.AverOddsAway           = oddValue.Average2;
                        tempModel.PayoutAverOddsHomeAway = oddValue.AveragePayout;
                        tempModel.PayoutOddsHomeAway     = oddValue.HighestPayout;
                    }

                    if (oddValue.Tab == "Asian Handicap")
                    {
                        tempModel.AHeq_BET                   = oddValue.GameValue;
                        tempModel.OddsAHeqHome               = oddValue.Highest1;
                        tempModel.OddsAHeqAway               = oddValue.Highest2;
                        tempModel.AverOddsAHeqHome           = oddValue.Average1;
                        tempModel.AverOddsAHeqAway           = oddValue.Average2;
                        tempModel.PayoutAverOddsAHeqHomeAway = oddValue.AveragePayout;
                        tempModel.PayoutOddsAHeqHomeAway     = oddValue.HighestPayout;
                    }

                    if (oddValue.Tab == "Over/Under")
                    {
                        tempModel.OUeq_BET               = oddValue.GameValue;
                        tempModel.OddsOUeqOVER           = oddValue.Highest1;
                        tempModel.OddsOUeqUNDER          = oddValue.Highest2;
                        tempModel.AverOddsOUeqOVER       = oddValue.Average1;
                        tempModel.AverOddsOUeqUNDER      = oddValue.Average2;
                        tempModel.PayoutAverOddsOUeqOVER = oddValue.AveragePayout;
                        tempModel.PayoutOddsOUeqUNDER    = oddValue.HighestPayout;
                    }
                }
                temperaryModels.Add(tempModel);
            }
            return(temperaryModels);
        }
        public OddSerializationList TransformData(List <OddValue> oddsValues)
        {
            OddSerializationList list = new OddSerializationList();

            for (int i = 0; i < 50; i++)
            {
                list.Add(CreateModel());
            }

            return(list);
        }