private void GetLogs() { using (LogsDb context = new LogsDb()) { Logs = new BindingList <log>(context.logs.ToList()); } }
public ExceptionService(LogsDb db) { this.db = db ?? throw new ArgumentNullException(nameof(db)); }