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

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