public async Task <IActionResult> GetAll(CancellationToken token) { _logger.LogInformation("GET /cinema request accepted"); var response = await _cinemaService.GetAsync(token); return(Ok(_mapper.Map <IEnumerable <CinemaResponse> >(response))); }
public async Task <ActionResult> Cinema([FromRoute] int Id) { var result = await cinemaService.GetAsync(Id); return(View(result)); }