Exemplo n.º 1
0
        private BosiStatusModel CreateBosiStatusModel(ExternalSystem system, BatchHistory batch, Severity severity)
        {
            var defaultDate = DateTime.Parse("01/01/1970");

            var count = EventLogger.CountLogEntriesWithStatus(system.Id, severity, batch == null ? defaultDate : batch.RunEnd);

            return(count > 0 ? new BosiStatusModel(system, severity, batch)
            {
                LogCount = count
            } : null);
        }