public async Task <ActionResult <MovieDto> > CreateMovie([FromBody] MovieForCreationDto movie) { var returnMovie = await MovieLogic.CreateMovieAsync(movie); return(CreatedAtAction("GetMovie", new { id = returnMovie.Id }, returnMovie)); }
public async Task <ActionResult <MovieDto> > CreateMovie([FromBody] MovieForCreationDto movie) { var returnMovie = await MovieLogic.CreateMovieAsync(movie); return(CreatedAtAction("GetMovie", new { id = returnMovie.Id }, returnMovie)); }