private AuctionVehicle CreateVehicle(int searchSessionId, string rowElementHtml)
        {
            var newVehicle = new AuctionVehicle();

            //newVehicle._id = System.Guid.NewGuid().ToString();
            newVehicle._searchSession = searchSessionId;
            // Set the current search vehicle based on the current one being search (global)
            newVehicle.make  = AppSettings.globalMake;
            newVehicle.model = AppSettings.globalModel;
            newVehicle.searchSessionTimeStamp = DateTime.Now;
            newVehicle.htmlData = new List <AuctionVehicleHtmlRow>();
            newVehicle.htmlData.Add(new AuctionVehicleHtmlRow()
            {
                htmlRow = rowElementHtml
            });

            newVehicle.inPostgres = false;


            return(newVehicle);
        }
        private void SaveMongo(MongoDatabase AuctionVehicles, MongoCollection vehicles, AuctionVehicle newVehicle)
        {
            Console.WriteLine("Inserting into MONGODB!!!!!!!!");

            vehicles.Insert(newVehicle);

            Console.WriteLine("** MongoDB Insert Complete **");
        }
        private AuctionVehicle CreateVehicle(int searchSessionId, string rowElementHtml)
        {
            var newVehicle = new AuctionVehicle();

               //newVehicle._id = System.Guid.NewGuid().ToString();
               newVehicle._searchSession = searchSessionId;
               // Set the current search vehicle based on the current one being search (global)
               newVehicle.make = AppSettings.globalMake;
               newVehicle.model = AppSettings.globalModel;
               newVehicle.searchSessionTimeStamp = DateTime.Now;
               newVehicle.htmlData = new List<AuctionVehicleHtmlRow>();
               newVehicle.htmlData.Add(new AuctionVehicleHtmlRow()
                                       {
                                           htmlRow = rowElementHtml
                                       });

               newVehicle.inPostgres = false;

               return newVehicle;
        }
        private void SaveMongo(MongoDatabase AuctionVehicles, MongoCollection vehicles, AuctionVehicle newVehicle)
        {
            Console.WriteLine("Inserting into MONGODB!!!!!!!!");

            vehicles.Insert(newVehicle);

            Console.WriteLine("** MongoDB Insert Complete **");
        }