public async Task EditFilmAsync(FilmDetailsModel model) { Film film = _mapper.Map <FilmDetailsModel, Film>(model); if (film == null) { throw new FilmNotExistException($"Film with Id{film.FilmId} does not exist"); } await _filmRepository.EditFilmAsync(film); }