Ejemplo n.º 1
0
        public IHttpActionResult GetByYear(int releaseYear)
        {
            List <Dvd> dvdsFound = _dvdRepository.GetDvdsByYear(releaseYear);

            if (dvdsFound == null)
            {
                return(NotFound());
            }
            return(Ok(dvdsFound));
        }
Ejemplo n.º 2
0
 public IHttpActionResult DvdsYear(int releaseYear)
 {
     return(Ok(repo.GetDvdsByYear(releaseYear)));
 }