publicclassPersonAppService{
privateIPersonRepository _personRepository;publicPersonAppService(IPersonRepository personRepository){
_personRepository = personRepository;}publicvoidCreatePerson(string name,int age){
var person =newPerson{
Name = name, Age = age