Ejemplo n.º 1
0
        public ActionResult <List <Show> > Get(int page)
        {
            List <Show> show = _showService.GetAll(page == 0 ? 1 : page).ToList();

            if (show.Count() > 0)
            {
                return(show.Select(s => s.OrderByBirthday()).ToList());
            }
            else
            {
                return(NotFound());
            }
        }
Ejemplo n.º 2
0
        public IActionResult GetAll()
        {
            var response = _service.GetAll();

            return(Ok(response));
        }