private static MovieResource MapToMovieResource(Movie movie)
 {
     return(new MovieResource()
     {
         Title = movie.Title,
         ImageUrl = movie.ImageUrl,
         Genre = (GrpcGenre)movie.Genre,
         Year = movie.Year
     });
 }
        public async Task <int> CreateMovie(Movie movie)
        {
            try
            {
                var createMovieResponse = await _movieServiceClient.CreateMovieAsync(MapToMovieResource(movie));

                return(createMovieResponse.Id);
            }
            catch (RpcException e)
            {
                throw MapToDomainException(e);
            }
        }