Exemplo n.º 1
0
 private void BookingDateSelected(BookingDayViewModel bookingOrDayToBook)
 {
     if (_securityManager.HasBookingAccess)
     {
         GoToBooking(bookingOrDayToBook);
     }
     else
     {
         _navigationService.ShowPasswordPopup();
     }
 }
Exemplo n.º 2
0
 private void GoToBooking(BookingDayViewModel bookingOrDayToBook)
 {
     if (bookingOrDayToBook.IsBooked)
     {
         var booking = _bookings.FirstOrDefault(x => x.BookingStartDate == bookingOrDayToBook.Day);
         _navigationService.NavigateToBookingDetails(booking);
     }
     else
     {
         _navigationService.NavigateToBooking(bookingOrDayToBook.Day);
     }
 }