public async Task UpdateMovieAsync(int id, MovieDataDto movieData) { var movieDto = _mapper.Map <MovieDataDto, MovieDto>(movieData); movieDto.Id = id; await UpdateAsync(movieDto); }
public async Task <MovieDataDto> AddMovieAsync(MovieDataDto movieData) { var movieDto = _mapper.Map <MovieDataDto, MovieDto>(movieData); var result = await AddAsync(movieDto); return(_mapper.Map <MovieDto, MovieDataDto>(result)); }
public async Task UpdateMovieAsync(int id, MovieDataDto movieData) { await _movieService.UpdateMovieAsync(id, movieData); }
public async Task <MovieDataDto> AddMovieAsync(MovieDataDto movieData) { return(await _movieService.AddMovieAsync(movieData)); }