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; }
public List<Movie> Create(Movie movie) { List<Movie> lstMovies = movies; lstMovies.Add(movie); return lstMovies; }