private async Task <DialogTurnResult> CardStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { TrackInfoCardDetail trackInfoCardDetail = new TrackInfoCardDetail(); trackInfoCardDetail.Major = stepContext.Context.Activity.Text; string cardPath = ""; CardGenerator cardGenerator = new CardGenerator(); switch (trackInfoCardDetail.Major) { case "공과대학": cardPath = "HSUbot.Cards.TrackInfoCards.ITGongdeaCard.json"; break; case "인문예술대학": cardPath = "HSUbot.Cards.TrackInfoCards.InMoonYeSoolDaeCard.json"; break; case "디자인대학": cardPath = "HSUbot.Cards.TrackInfoCards.DesignDaeCard.json"; break; case "사회과학대학": cardPath = "HSUbot.Cards.TrackInfoCards.SocialScienceDaeCard.json"; break; } await cardGenerator.AttachAdaptiveCardAsync(stepContext.Context, cardPath, cancellationToken); return(await stepContext.EndDialogAsync(null, cancellationToken)); }