示例#1
0
        public async Task <IEnumerable <Models.Film> > GetAllAsync(int languageId)
        {
            _logger.LogInformation("Getting all films by languageId {languageId}", languageId);

            if (languageId < 1)
            {
                languageId = 1;
            }

            return(_mapper.Map <IEnumerable <Models.Film> >(
                       await _filmsService.GetAllAsync(languageId)
                       ));
        }