예제 #1
0
        public IHttpActionResult GetAllByRating(string rating)
        {
            List <Dvd> dvdsFound = _dvdRepository.GetDvdsByRating(rating);

            if (dvdsFound == null)
            {
                return(NotFound());
            }
            return(Ok(dvdsFound));
        }
예제 #2
0
        public IHttpActionResult GetDvdsByRating(string rating)
        {
            var dvds = _dvdRepository.GetDvdsByRating(rating);

            if (dvds != null)
            {
                return(Ok(dvds));
            }
            return(NotFound());
        }
예제 #3
0
 public IHttpActionResult DvdsRating(string rating)
 {
     return(Ok(repo.GetDvdsByRating(rating)));
 }