Example #1
0
        public IHttpActionResult GetDvdByRating(string rating)
        {
            IEnumerable <DvdItem> found = _dvdRepository.GetDvdByRating(rating);

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

            return(Ok(found));
        }