Example #1
0
      private async void OnDiscardBook()
      {
          bool result = await AlertManager.DiscardBook();

          if (result)
          {
              await Navigation.PopAsync();
          }
      }
        private async void OnDiscardBook()
        {
            bool result = await AlertManager.DiscardBook();

            if (result)
            {
                RealmManager.RemoveBookById(NewBook.Id);
                await Navigation.PopAsync();
            }
        }