Exemplo n.º 1
0
        private async Task Delete()
        {
            var ok = await _huntFactory.DeleteHunt(ID);

            if (ok)
            {
                await _navigator.PopToRootAsync();
            }
        }
Exemplo n.º 2
0
        private async Task DeleteItem(object item)
        {
            var hunt = (item as HuntListItemViewModel);

            var ok = await _huntFactory.DeleteHunt(hunt.ID);

            if (ok)
            {
                await FetchData();
            }
        }