public ActionResult Index() { LogSettingAndEvents logSettingAndEvents = new LogSettingAndEvents(); logSettingAndEvents.IsStarted = _memoryAppender != null ? _memoryAppender.IsStarted : false; logSettingAndEvents.LoggingEvents = _memoryAppender == null?Enumerable.Empty <LoggingEvent>() : _memoryAppender.GetEvents(); return(View("Show", logSettingAndEvents)); }
public ActionResult Index() { var logSettingAndEvents = new LogSettingAndEvents { IsStarted = _memoryAppender?.IsStarted ?? false, LoggingEvents = _memoryAppender == null?Enumerable.Empty <LoggingEvent>() : _memoryAppender.GetEvents() }; return(View("Show", logSettingAndEvents)); }