Beispiel #1
0
        private async Task MessageReceivedAsync(IDialogContext context, IAwaitable <string> result)
        {
            var message = await result;

            _businessClass.BusinessMethod();
            await context.PostAsync($"Echo: { message}");

            context.Done(default(string));
        }
Beispiel #2
0
 public ActionResult LoginAction(User user)
 {
     if (ModelState.IsValid)
     {
         if (user.UserName == "abc")
         {
             _businessClass.BusinessMethod();
             return(View("Close", user));
         }
     }
     return(View("index"));
 }