public string RunTaskNow(int id)
        {
            //ToDo: Get run now task to update the last manual run and not to update the nex run time
            var sql = new Sql().Select("*").From <ScheduleUrl>().Where("id = " + id);

            var records = DatabaseContext.Database.Fetch <ScheduleUrl>(sql);

            var rs = new UrlRequestService();
            var urlRunningService = new UrlRunningService(rs);

            try
            {
                urlRunningService.CallUrls(records);
            }
            catch (Exception e)
            {
                _log.Error("Error running 'Run Now' task", e);
                return("Failed to run please see log for more information");
            }

            return(DateTime.UtcNow.ToString("dd/MM/yyyy hh:mm:ss.fff"));
        }
        public string RunTaskNow(int id)
        {
            //ToDo: Get run now task to update the last manual run and not to update the nex run time
            var sql = new Sql().Select("*").From<ScheduleUrl>().Where("id = " + id);

            var records = DatabaseContext.Database.Fetch<ScheduleUrl>(sql);

            var rs = new UrlRequestService();
            var urlRunningService = new UrlRunningService(rs);

            try
            {
                urlRunningService.CallUrls(records);
            }
            catch (Exception e)
            {
                _log.Error("Error running 'Run Now' task",e);
                return "Failed to run please see log for more information";
            }

            return DateTime.UtcNow.ToString("dd/MM/yyyy hh:mm:ss.fff");
        }