Exemplo n.º 1
0
        public async Task <ActionResult <Movie> > AddEditMovie([FromBody] Movie movie)
        {
            if (movie == null || !ModelState.IsValid)
            {
                return(BadRequest("Invalid State"));
            }

            return(await _movieRepo.AddEditMovie(movie));
        }