Beispiel #1
0
        public HttpResponseMessage PostMovie(MovieDto movie)
        {
            ControllerFactory.GetMovieController().Create(movie);
            var response = Request.CreateResponse<MovieDto>(HttpStatusCode.Created, movie);

            return response;
        }
 /*public IEnumerable<Movie> GetMovies()
 {
     return new Facade().GetMovieRepository().ReadAll();
 }*/
 public MovieDto PostMovie(MovieDto dto)
 {
     return dto;
 }
Beispiel #3
0
 public void PutMovie(MovieDto movie)
 {
     ControllerFactory.GetMovieController().Update(movie);
 }