Пример #1
0
        //public string Q5 { get; set; }
        //public string Q6 { get; set; }
        //public string Q7 { get; set; }
        //public string Q8 { get; set; }
        //public string Q9 { get; set; }
        //public string Q10 { get; set; }
        //public string Q11 { get; set; }
        //public string Q12 { get; set; }
        //public string Q13 { get; set; }

        private static async Task Process(IDialogContext context, InterviewModel state)
        {
            var hasName  = context.UserData.TryGetValue <string>("Name", out var name);
            var hasEmail = context.UserData.TryGetValue <string>("Email", out var email);

            if (hasEmail)
            {
                await ProcessUser(state, hasName?name : "guest", email);
            }
        }
Пример #2
0
 private static async Task ProcessUser(InterviewModel state, string name, string email)
 {
     var service = new InterviewApiService("http://localhost:5000");
     await service.ProcessUser(state, name, email);
 }