private async Task DeleteItemsAsync(IEnumerable <PlaceModel> models) { foreach (var model in models) { await PlaceService.DeletePlaceAsync(model); } }
protected override async Task <bool> DeleteItemAsync(PlaceModel model) { try { StartStatusMessage("Deleting place..."); await Task.Delay(100); await PlaceService.DeletePlaceAsync(model); EndStatusMessage("Place deleted"); LogWarning("Place", "Delete", "Place deleted", $"Place {model.PlaceID} '{model.FullAddress}' was deleted."); return(true); } catch (Exception ex) { StatusError($"Error deleting Place: {ex.Message}"); LogException("Place", "Delete", ex); return(false); } }