private Command GetLessons( ScheduleService service, Action <string> writeln) => args => { foreach (var lesson in service.FIndLessons()) { WriteLessonsInfo(lesson, writeln, true); writeln(""); } };