public async Task <Guid> AddOrUpdateAsync(Guid organizationId, OrganizationDto createdOrganizationData) { Contract.Argument.IsNotNull(createdOrganizationData, nameof(createdOrganizationData)); var employeeId = await GetEmployeeIdAsync().ConfigureAwait(false); return(await _employeeWriteCommand.AddOrUpdateOrganizationAsync(employeeId, createdOrganizationData).ConfigureAwait(false)); }
public Task <Guid> UpdateOrganizationAsync(Guid employeeId, OrganizationDto organizationDto) { Contract.Argument.IsNotEmptyGuid(employeeId, nameof(employeeId)); return(_employeeWriteCommand.AddOrUpdateOrganizationAsync(employeeId, organizationDto)); }