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()); }
public async Task <List <Pelicula> > Get() { return(await _peliculaService.Get()); }