Ejemplo n.º 1
0
        public async Task <ActionResult> Post([FromForm] PersonCreationDTO personCreationDTO)
        {
            var personDTO = await _peopleService.AddPersonAsync(personCreationDTO);

            return(new CreatedAtRouteResult("getPerson", new { id = personDTO.Id }, personDTO));
        }