protected T Execute <T>(Func <LunchDatabase, T> action) { using (LunchDatabase database = new LunchDatabase()) { return(action(database)); } }
protected void Execute(Action <LunchDatabase> action) { using (LunchDatabase database = new LunchDatabase()) { action(database); } }