private async Task <DialogTurnResult> ActStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { pfDetail.Name = stepContext.Result.ToString(); Professors pf = new Professors(); var list = pf.ProfessorsDB(pfDetail.Name); if (list.Count > 0) { CardGenerator cardGenerator = new CardGenerator(); await cardGenerator.AttachProfessorsCard(stepContext.Context, list, pfDetail.Name, cancellationToken); } else { await stepContext.Context.SendActivityAsync(MessageFactory.Text($"{pfDetail.Name} 으로 검색한 결과가 없습니다.")); } return(await stepContext.EndDialogAsync(null, cancellationToken)); }