public async Task <Movie> GetMovieAsync(string id) { var movie = await JsonRestApi.GetAsync <Movie>($"{BaseUriString}movies/{id}"); return(movie); }
public async Task <IList <Movie> > GetMoviesAsync() { var movies = await JsonRestApi.GetAsync <List <Movie> >($"{BaseUriString}movies"); return(movies); }
public async Task RemoveMovieAsync(string id) { await JsonRestApi.DeleteAsync($"{BaseUriString}movies/{id}"); }
public async Task InsertMovieAsync(Movie movie, string id) { await JsonRestApi.PutAsync <Movie>($"{BaseUriString}movies/{id}", movie); }
public async Task UpdateMoviesAsync(List <Movie> movies) { await JsonRestApi.PostAsync <List <Movie> >($"{BaseUriString}movies", movies); }