public async Task <object> GeneratePerson([FromBody] GeneratePersonDTO person) { var insertedPersonId = await _personService.CreatePerson(person.FirstName, person.LastName); return(new { PersonId = insertedPersonId.ToString() }); }
public async Task GeneratePerson([FromBody] GeneratePersonDTO person) { await _personService.CreatePerson(person.FirstName, person.LastName); }