Beispiel #1
0
        public async Task <Person> Edit(PersonVm personVm)
        {
            Person personFromDb = await _personsRepository.GetOne(personVm.Id.Value);

            personFromDb = EditCommonPersonProperties(personFromDb, personVm);

            await _personsRepository.Update(personFromDb);

            return(personFromDb);
        }
Beispiel #2
0
 public async Task <Person> GetOne(int personId)
 {
     return(await _personRepository.GetOne(personId));
 }