Esempio n. 1
0
        private async Task DeleteBookingAsync()
        {
            try
            {
                await BookingViewModel.DeleteABookingAsync();

                await new MessageDialog("Deletion ok!").ShowAsync();

                Frame.Navigate(typeof(AllBookingsPage));
            }
            catch (Exception ex)
            {
                await new MessageDialog(ex.Message).ShowAsync();
            }
        }
        private async Task DeleteBookingAsync()
        {
            try
            {
                await BookingViewModel.DeleteABookingAsync();

                await new MessageDialog("Booking deleted!").ShowAsync();


                Frame.Navigate(typeof(AllBookingsOfOwnedAccommodations));
            }
            catch (Exception ex)
            {
                await new MessageDialog(ex.Message).ShowAsync();
            }
        }