Exemplo n.º 1
0
 public override async void OnStateChange(Chat chat)
 {
     DateTime      firstDate  = DateTime.Now.AddDays(1);
     DateTime      secondDate = firstDate.AddDays(6);
     List <string> dates      = DbServices.GetIntermediateDates(firstDate, secondDate);
     await ServicesMessageController.SendMessageAsync(
         chat, "Введіть дату прибуття", Keyboards.NextDates(dates));
 }
Exemplo n.º 2
0
 public override async void OnStateChange(Chat chat)
 {
     responder.userTempData.TryGetValue("DateOfArrival", out string firstDateString);
     DateTime      firstDate  = DateTime.Parse(firstDateString).AddDays(1);
     DateTime      secondDate = firstDate.AddDays(6);
     List <string> dates      = DbServices.GetIntermediateDates(firstDate, secondDate);
     await ServicesMessageController.SendMessageAsync(
         chat, "Введіть дату відбуття", Keyboards.NextDates(dates));
 }