public IHttpActionResult GetAll()
        {
            IEnumerable <Dvd>     found  = _repo.GetAll();
            IEnumerable <JObject> output = DvdMapper.ToJsonList(found);

            return(Ok(output));
        }
        public IHttpActionResult GetRating(string rating)
        {
            IEnumerable <Dvd> found = _repo.GetByRating(rating);

            if (found == null)
            {
                return(NotFound());
            }
            IEnumerable <JObject> output = DvdMapper.ToJsonList(found);

            return(Ok(output));
        }
        public IHttpActionResult GetDate(string releaseDate)
        {
            IEnumerable <Dvd> found = _repo.GetByYear(releaseDate);

            if (found == null)
            {
                return(NotFound());
            }
            IEnumerable <JObject> output = DvdMapper.ToJsonList(found);

            return(Ok(output));
        }