async public void SaveToParse () { ParseObject movie; if (this.ParseId == null || this.ParseId == "") { movie = new ParseObject ("Pelicula"); } else { ParseQuery<ParseObject> query = ParseObject.GetQuery ("Pelicula"); movie = await query.GetAsync (this.ParseId); } movie ["Nombre"] = this.Title; movie ["Nombre_Original"] = this.Title; movie ["Anio"] = int.Parse (this.Year); movie ["Director"] = this.Director; movie ["ID_TMDB"] = this.ApiId; movie ["Descripcion"] = this.Overview; await movie.SaveAsync ().ContinueWith (t => { this.ParseId = movie.ObjectId; Console.WriteLine ("Saved Movie in Parse: " + this.ParseId); MovieDB movieDB = new MovieDB (); movieDB.Update (this); }); }
public void Update(Movie movie) => _db.Update(movie);