Exemple #1
0
        private async Task WasteDonationAsync(int donationId)
        {
            var res = await donationRepository.WasteDonationAsync(donationId);

            if (res)
            {
                MessagingCenter.Send(this, "StatusChanged", Item);
                await Page.Navigation.PopAsync();
            }
            else
            {
                ShowFailureDialog("Unable to Waste Donation");
            }
        }
Exemple #2
0
        private async Task WasteDonationAsync(int donationId)
        {
            await donationRepository.WasteDonationAsync(donationId);

            await Page.Navigation.PopAsync();
        }