Example #1
0
        public async Task <ActionResult <ActorDetailedDTO> > Post([FromBody] ActorCreateUpdateDTO actor)
        {
            var created = await _repository.CreateAsync(actor);

            return(CreatedAtAction(nameof(Get), new { created.Id }, created));
        }