Example #1
0
        public async Task <object> GeneratePerson([FromBody] GeneratePersonDTO person)
        {
            var insertedPersonId = await _personService.CreatePerson(person.FirstName, person.LastName);

            return(new { PersonId = insertedPersonId.ToString() });
        }
Example #2
0
 public async Task GeneratePerson([FromBody] GeneratePersonDTO person)
 {
     await _personService.CreatePerson(person.FirstName, person.LastName);
 }