public async Task <PersonViewModel> Create(PersonViewModel personViewModel)
        {
            var person        = _mapper.Map <Person>(personViewModel);
            var createdPerson = await _personDomainService.Create(person);

            return(_mapper.Map <PersonViewModel>(createdPerson));
        }
Beispiel #2
0
 public async Task Create(Person person)
 {
     await _personDomainService.Create(person);
 }
 public void Create(Person person)
 {
     _personDomainService.Create(person);
 }