コード例 #1
0
        public IActionResult Post([FromBody] ActorRequest actorRequest)
        {
            if (!_actorService.AddActorsToMovie(AutoMapper.Mapper.Map <Actor>(actorRequest)))
            {
                return(BadRequest());
            }

            return(Ok());
        }