public Dictionary <string, Object> getSeries(int page, int rpp) { SerieDAO serieDAO = new SerieDAO(); var res = new Dictionary <string, Object>(); res.Add("series", serieDAO.getSeries(page, rpp)); res.Add("total", serieDAO.getSeriesCount()); return(res); }