Example #1
0
        public IActionResult List()
        {
            var shows = _mapper.ProjectTo <ShowViewModel>(_showsService.GetAll());

            return(Ok(shows));
        }
Example #2
0
 public async Task <IEnumerable <ShowViewModel> > GetAllShows()
 {
     return(await _showsService.GetAll());
 }