public async Task <InvestigationPersonDto> Create(InvestigationPerson investigationPerson) { PersonWebService ws = new(); return(await ws.CreateInvestigationPersonAsync(Map(investigationPerson))); }
public async Task <InvestigationPersonDto> Update(int id, InvestigationPerson investigation) { PersonWebService ws = new(); return(await ws.UpdateInvestigationPersonAsync(id, Map(investigation))); }
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)); }