void RunProcess()
        {
            eventLog1.WriteEntry("Entro A Correr EOD " + DateTime.Now);
            while (true)
            {
                if (DateTime.Now == DateTime.Parse("03:33:00 pm"))
                {
                    eventLog1.WriteEntry("EOD Process Starts at: " + DateTime.Now);
                    EOD eod = new EOD();
                    eod.OrdersEOD();
                    eventLog1.WriteEntry("EOD Process Ends at: " + DateTime.Now);

                }
            }
        }
        void RunProcess()
        {
            while (true)
            {

                    eventLog1.WriteEntry("Data Pull starts at: " + DateTime.Now);
                    stores.CheckAllOrders();
                    eventLog1.WriteEntry("Data Pull stops at: " + DateTime.Now);
                    if (DateTime.Now >= DateTime.Parse("6:00 pm") && DateTime.Now <= DateTime.Parse("7:00 pm"))
                    {
                        eventLog1.WriteEntry("EOD Process Starts at: " + DateTime.Now);
                        EOD eod = new EOD();
                        eod.OrdersEOD();
                        eventLog1.WriteEntry("EOD Process Ends at: " + DateTime.Now);
                    }
                    Thread.Sleep(3600000);
            }
        }
 public JsonResult RunOrdersEod()
 {
     EOD eod = new EOD();
     return Json(eod.OrdersEOD(), JsonRequestBehavior.AllowGet);
 }