public IHttpActionResult GetAllByRating(string rating) { List <Dvd> dvdsFound = _dvdRepository.GetDvdsByRating(rating); if (dvdsFound == null) { return(NotFound()); } return(Ok(dvdsFound)); }
public IHttpActionResult GetDvdsByRating(string rating) { var dvds = _dvdRepository.GetDvdsByRating(rating); if (dvds != null) { return(Ok(dvds)); } return(NotFound()); }
public IHttpActionResult DvdsRating(string rating) { return(Ok(repo.GetDvdsByRating(rating))); }