public IHttpActionResult GetByYear(int releaseYear) { List <Dvd> dvdsFound = _dvdRepository.GetDvdsByYear(releaseYear); if (dvdsFound == null) { return(NotFound()); } return(Ok(dvdsFound)); }
public IHttpActionResult DvdsYear(int releaseYear) { return(Ok(repo.GetDvdsByYear(releaseYear))); }