コード例 #1
0
        private async Task DeleteAirport(Airport airport)
        {
            if (Airports.Any() && Airports.Contains(airport))
            {
                await AirportService.DeleteAirport(airport.Id, new System.Threading.CancellationToken()).ConfigureAwait(false);

                Airports.Remove(airport);
            }
            HasSavedItems = Airports != null && Airports.Any();
        }