public async Task <Guid> AddOrUpdateAsync(Guid?passportId, PassportDto createdPassportData) { Contract.Argument.IsNotNull(createdPassportData, nameof(createdPassportData)); var employeeId = await GetEmployeeIdAsync(); return(await _employeeWriteCommand.AddOrUpdatePassportAsync(employeeId, createdPassportData)); }
public Task <Guid> UpdatePassportAsync(Guid employeeId, PassportDto passportDto) { Contract.Argument.IsNotEmptyGuid(employeeId, nameof(employeeId)); return(_employeeWriteCommand.AddOrUpdatePassportAsync(employeeId, passportDto)); }