Exemple #1
0
        public static Collection <List <Logs> > GetReportsToWrite()
        {
            TransformReports report = new TransformReports();

            try
            {
                using (DatabaseCommands commands = new DatabaseCommands())
                {
                    var logs   = commands.GetLastAllLogs();
                    var errors = report.FiltersCombinedAllErrors(logs.ToList());

                    return(errors);
                }
            }
            catch (System.Exception ex)
            {
                COMS.LogException(ex);
            }
            return(null);
        }
Exemple #2
0
        public void GetReports()
        {
            TransformReports report = new TransformReports();

            try
            {
                using (DatabaseCommands commands = new DatabaseCommands())
                {
                    var logs   = commands.GetLastAllLogs();
                    var errors = report.FiltersCombinedAllErrors(logs.ToList());

                    foreach (var items in errors)
                    {
                        report.WriteReport(items);
                    }
                }
            }
            catch (System.Exception ex)
            {
                COMS.LogException(ex);
            }
        }