public async Task <IActionResult> GetShow([FromRoute] int id) { var show = await _showsService.GetById(id); if (show == null) { return(NotFound()); } return(Ok(show)); }
public async Task <IActionResult> GetById([FromRoute] int id) { var show = await _showsService.GetById(id); if (show == null) { return(NotFound()); } return(Ok(_mapper.Map <ShowViewModel>(show))); }
public ActionResult <Model.Show> GetById(int id) { return(_service.GetById(id)); }