public IHttpActionResult GetPelicula(long id)
        {
            Pelicula pelicula = peliculaService.Get(id);

            if (pelicula == null)
            {
                return(NotFound());
            }

            return(Ok(pelicula));
        }
 // GET: api/Pelicula
 public IQueryable <Pelicula> GetPelicula()
 {
     return(PeliculaService.Get());
 }
예제 #3
0
 public async Task <List <Pelicula> > Get()
 {
     return(await _peliculaService.Get());
 }