UpdateCast(
            int movieId,
            int id,
            [FromBody] CastForUpdateDto castForUpdate
            )
        {
            if (!_repository.MovieExists(movieId))
            {
                return(NotFound());
            }

            var castFromStore = _repository.GetCastByMovie(movieId, id);

            if (castFromStore == null)
            {
                return(NotFound());
            }

            _mapper.Map(castForUpdate, castFromStore);
            _repository.UpdateCastForMovie(movieId, castFromStore);
            _repository.Save();

            return(NoContent());
        }