public async Task <ActionResult <MovieDTO> > AddMovie(MovieModel movieToAdd) { try { var result = await _movieService.AddMovieToDatabase(movieToAdd); return(CreatedAtAction(nameof(GetMovie), new { movieId = result.Id }, result.ToDto())); } catch { return(BadRequest()); } }