private async Task <DialogTurnResult> SecondStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { matjeepchoochunDetail.Category = matjeepchoochunDetail.Category == null ? stepContext.Context.Activity.Text:matjeepchoochunDetail.Category; var msg = String.Empty; var attachments = new List <Attachment>(); var reply = MessageFactory.Attachment(attachments); switch (matjeepchoochunDetail.Category) { case "한식": reply.Attachments.Add(CardGenerator.GetYoonGaNeCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetRiceBurgerCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetWoonBongCard().ToAttachment()); break; case "중식": reply.Attachments.Add(CardGenerator.GetSeunglijangCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetJoongHwaMyungGaCard().ToAttachment()); break; case "일식": reply.Attachments.Add(CardGenerator.GetSushiHarooCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetSushiHyeonCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetMrDonkkasCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetStarDongCard().ToAttachment()); break; case "분식": reply.Attachments.Add(CardGenerator.GetMecaDDuckCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetSinJeonCard().ToAttachment()); break; case "치킨": reply.Attachments.Add(CardGenerator.GetHoChickenCard().ToAttachment()); break; case "피자": reply.Attachments.Add(CardGenerator.GetPizzaBellCard().ToAttachment()); break; case "순대국": reply.Attachments.Add(CardGenerator.GetGrandMamaCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetAuneCard().ToAttachment()); reply.Attachments.Add(CardGenerator.GetDonamgolCard().ToAttachment()); break; } await stepContext.Context.SendActivityAsync(reply, cancellationToken); await stepContext.Context.SendActivityAsync(MessageFactory.Text(msg), cancellationToken); return(await stepContext.EndDialogAsync(null, cancellationToken)); }