Exemple #1
0
        public void FillCarDetails()
        {
            try
            {
                Console.WriteLine("Starting");
                DataAccess.CleanTables();
                Logger.Debug("Filling Details = {0}", DateTime.Now.ToString("MMM ddd d HH:mm yyyy"));
                FillMillage();
                FillYears();
                FillMake();
                FillModel();
                FillPrice();
                foreach (var car in _emptyList)
                {
                    DataAccess.UpdateCarDetail(car);
                    DataAccess.CheckForDups(car.Id);
                }

                var htmlProcess = new HtmlProcessing();
                htmlProcess.ProcessHtml();
                htmlProcess.Dispose();

                SendOutEmails();
                SendMail();
                Console.WriteLine("Done");
            }
            catch (Exception ex)
            {
                Logger.Error(ex.ToString());
            }
        }
Exemple #2
0
        public void FillCarDetails()
        {
            try
            {
                Console.WriteLine("Starting");
                DataAccess.CleanTables();
                Logger.Debug("Filling Details = {0}", DateTime.Now.ToString("MMM ddd d HH:mm yyyy"));
                FillMillage();
                FillYears();
                FillMake();
                FillModel();
                FillPrice();
                foreach (var car in _emptyList)
                {
                    DataAccess.UpdateCarDetail(car);
                    DataAccess.CheckForDups(car.Id);
                }

                var htmlProcess = new HtmlProcessing();
                htmlProcess.ProcessHtml();
                htmlProcess.Dispose();

                SendOutEmails();
                SendMail();
                Console.WriteLine("Done");

            }
            catch (Exception ex)
            {
                Logger.Error(ex.ToString());
            }
        }