Exemplo n.º 1
0
        public StatusCodeResult AddNewActor([FromBody] ActorModel actor)
        {
            if (_moviesRepository.AddNewActor(actor))
            {
                return(new StatusCodeResult(200));
            }

            return(new StatusCodeResult(400));
        }