public async Task <IActionResult> GetByIdAsync(int id, int languageId) { _logger.LogInformation("Getting film by id {id} and languageId {languageId}", id, languageId); if (languageId == 0) { languageId = 1; } var film = _mapper.Map <Models.Film>(await _filmsService.GetByIdAsync(id, languageId)); if (film == null) { return(NotFound()); } return(Ok(film)); }