Beispiel #1
0
        public async Task <int> SaveMoviewReviewsAsync(Models.MovieReviews movieReviews)
        {
            var data = await _database.Table <Models.MovieReviews>().ToListAsync();

            Debug.WriteLine(data.ToString());
            if (data != null)
            {
                var dataString = new List <Models.MovieReviews>(data);
                return(await _database.InsertAsync(movieReviews));

                //foreach (var movieName in dataString)
                //{
                //    if (movieReviews.FavMovieTitleInListView == movieName.FavMovieTitleInListView)
                //    {
                //        return await _database.DeleteAsync(movieName);
                //    }
                //}
            }

            return(await _database.InsertAsync(movieReviews));
        }
Beispiel #2
0
 public Task <int> SaveReviewAsync(Models.MovieReviews review)
 {
     return(_database.InsertAsync(review));
 }