public async Task <IActionResult> PostAsync([FromBody] PersonInput input)
        {
            var resultado = await _personAppService.InsertAsync(input);

            return(OkOrNoContent(resultado));
        }
Exemplo n.º 2
0
 public async Task <IActionResult> Post([FromBody] PersonInput input)
 {
     return(Created("", await _personAppService.InsertAsync(input)));
 }