public ActionResult ExecuteService()
        {
            AutomatedService automatedService = new AutomatedService();

            automatedService.ExecutonFunction();

            return(View());
        }
        private void timer_tick(object sender, ElapsedEventArgs e)
        {
            WindowsServiceLogging.WriteEventLog("******************* -- Event: OnStart -- ***********************");
            WindowsServiceLogging.WriteEventLog("Timer tick and operation started");


            AutomatedService automatedService = new AutomatedService();

            automatedService.ExecutonFunction();


            WindowsServiceLogging.WriteEventLog("Operation Completed Succesfully");
            WindowsServiceLogging.WriteEventLog("******************* -- Event: Completed -- ***********************");
        }