public async Task <IActionResult> AddDirector([FromBody] MovieDirectorViewModel director)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var newDirector = Mapper.Map <MovieDirector>(director);

            _repository.AddDirector(newDirector);
            if (await _repository.SaveChangesAsync())
            {
                return(Created($"api/movie/director", Mapper.Map <MovieDirectorViewModel>(newDirector)));
            }

            return(BadRequest("Failed to save changes to the database"));
        }