Exemplo n.º 1
0
        public IHttpActionResult NewDVD(DVDView dvd)
        {
            DVDResponse create = manager.NewDVD(dvd.title, dvd.director, dvd.rating, dvd.realeaseYear, dvd.notes);

            if (create.DVDView == null)
            {
                return(NotFound());
            }

            return(Ok(create.DVDView));
        }