async void DeleteShop(object sender) { try { var menuItem = sender as MenuItem; var shop = menuItem.CommandParameter as Shop; var response = await s_services.DeleteShop(shop.Id); if (response.StatusCode == System.Net.HttpStatusCode.OK) { shopsCollection.Remove(shop); await DisplayAlert("Done", "Selected item has been deleted Successfully", "Ok"); } } catch (Exception ex) { await DisplayAlert("Error", ex.Message, "Ok"); } }