Esempio n. 1
0
        public IHttpActionResult GetById(int id)
        {
            DVDResponse found   = manager.GetById(id);
            var         dvdById = new DVDView(found.DVD);

            if (found.DVD == null)
            {
                return(NotFound());
            }

            return(Ok(dvdById));
        }