public async Task InsertRouteHistoryItemAsync(RouteHistoryItem rhi)
 {
     var db = new RuntimeDataContext();
     await db.InsertRouteHistoryItemAsync(rhi).ConfigureAwait(false);
 }
        public async Task<List<RouteHistoryItem>> GetRouteHistoryItemsAsync()
        {
            var db = new RuntimeDataContext();
            var rhi = await db.GetRouteHistoryItemsAsync().ConfigureAwait(false);

            return rhi;
        }
        public async Task InsertFavoriteIfNotExistsAsync(Favorite fav)
        {
            var db = new RuntimeDataContext();

            bool exists = await db.DoesFavoriteExistAsync(fav.HaltestellenId).ConfigureAwait(false);
            
            if (!exists)
            {
                await db.InsertFavoriteAsync(fav).ConfigureAwait(false);
            }
        }
 public async Task DeleteFavoriteAsync(Favorite fav)
 {
     var db = new RuntimeDataContext();
     await db.DeleteFavoriteAsync(fav).ConfigureAwait(false);
 }
        public async Task<List<Favorite>> GetFavoritesAsync()
        {
            var db = new RuntimeDataContext();
            var favs = await db.GetFavoritesAsync().ConfigureAwait(false);

            return favs;
        }