[HttpPost] // POST: api/actors public ActionResult <ActorDto> PostMovie(ActorDto inputDto) { var actor = _service.AddActor(inputDto); return(CreatedAtAction("GetById", new { id = actor.Id }, actor)); }
public ActionResult <InputActorViewModel> PostActor(ActorDto inputDto) { var actor = _service.AddActor(inputDto); return(CreatedAtAction("GetById", new { id = actor.Id }, actor)); }
public ActionResult <ActorDto> AddActor(ActorDto createModel) { var actor = _service.AddActor(createModel); return(CreatedAtAction("GetById", new { id = actor.Id }, actor)); }