Ejemplo n.º 1
0
        // GET: api/Film?query=harry&page=1
        public Film.RootObject Get(string query, int page)
        {
            Film.RootObject listSearchFilms = new Film.RootObject();
            foreach (var item in FilmDAO.GetResults(query, page))
            {
                listSearchFilms.films.Add(item);
            }
            listSearchFilms.totalFilms = listSearchFilms.films.Count();

            return(listSearchFilms);
        }