Ejemplo n.º 1
0
        private async Task <bool> UpdatePersonSought()
        {
            PersonEntity newPersonEntity = _mapper.Map <PersonEntity>(_personSought);

            Dictionary <string, object> updatedFields = (Dictionary <string, object>)_uploadedPerson.Clone().GetUpdateEntries(newPersonEntity);

            if (updatedFields.Count > 0)
            {
                await _searchRequestService.UpdatePerson(_uploadedPerson.PersonId, updatedFields, newPersonEntity, _cancellationToken);

                _logger.LogInformation("Update Person successfully");
            }
            return(true);
        }