private async Task AddStudentFlowAsync(Guid classId) { string firstName = SharedConsoleFlows.AskForString("What is the first name of the student?"); string infix = SharedConsoleFlows.AskForOptionalString("What is the infix of the student?"); string lastName = SharedConsoleFlows.AskForString("What is the last name of the student?"); var model = new AddStudentRequest { ClassId = classId, FirstName = firstName, Infix = infix, LastName = lastName }; AddStudentResult addStudentResponse = await _classController.AddStudentAsync(model); if (addStudentResponse.ValidationMessages.Any()) { SharedConsoleFlows.PrintValidationMessages(addStudentResponse.ValidationMessages); await AddStudentFlowAsync(classId); } }