Beispiel #1
0
 public List<Movie> Update(Movie movie)
 {
     List<Movie> lstMovies = movies.Where(x => x.id != movie.id).ToList();
     Movie m = GetMovie(movie.id);
     lstMovies.Add(movie);
     return lstMovies;
 }
Beispiel #2
0
 public List<Movie> Create(Movie movie)
 {
     List<Movie> lstMovies = movies;
     lstMovies.Add(movie);
     return lstMovies;
 }