예제 #1
0
        public async Task <InvestigationPersonDto> Create(InvestigationPerson investigationPerson)
        {
            PersonWebService ws = new();

            return(await ws.CreateInvestigationPersonAsync(Map(investigationPerson)));
        }
예제 #2
0
        public async Task <InvestigationPersonDto> Update(int id, InvestigationPerson investigation)
        {
            PersonWebService ws = new();

            return(await ws.UpdateInvestigationPersonAsync(id, Map(investigation)));
        }
예제 #3
0
 public InvestigationPersonDto Map(InvestigationPerson person)
 {
     return(new(person.InvestigationPersonId, person.FirstName, person.LastName, person.Email, person.Address,
                person.ZipCode, person.City, person.PhoneNumber, person.Type));
 }