public IActionResult Log() { ph_model.Log.Instance.FlushLog(); using (LogContext db = LogContext.CreateContext()) { var entries = db.LogEntrySet.OrderBy(x => x.Time).ToList(); var vm = new LogViewModel() { LogEntries = entries }; return(View(vm)); } }