private async Task <DialogTurnResult> ActStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { phoneDetails.Name = phoneDetails.Name == null ? stepContext.Context.Activity.Text : stepContext.Result.ToString(); //phoneDetails.Name = stepContext.Context.Activity.Text; PhoneAdress phone = new PhoneAdress(); var list = phone.PhoneDB(phoneDetails.Name); if (list.Count > 0) { CardGenerator cardGenerator = new CardGenerator(); await cardGenerator.AttachPhoneCard(stepContext.Context, list, phoneDetails.Name, cancellationToken); } else { await stepContext.Context.SendActivityAsync(MessageFactory.Text($"{phoneDetails.Name} 으로 검색한 결과가 없습니다.")); } return(await stepContext.EndDialogAsync(null, cancellationToken)); }