예제 #1
0
        [HttpPost] // POST: api/actors
        public ActionResult <ActorDto> PostMovie(ActorDto inputDto)
        {
            var actor = _service.AddActor(inputDto);

            return(CreatedAtAction("GetById", new { id = actor.Id }, actor));
        }
예제 #2
0
        public ActionResult <InputActorViewModel> PostActor(ActorDto inputDto)
        {
            var actor = _service.AddActor(inputDto);

            return(CreatedAtAction("GetById", new { id = actor.Id }, actor));
        }
예제 #3
0
        public ActionResult <ActorDto> AddActor(ActorDto createModel)
        {
            var actor = _service.AddActor(createModel);

            return(CreatedAtAction("GetById", new { id = actor.Id }, actor));
        }