Exemplo n.º 1
0
        public async Task ChangeAddressAsync(string clientId, string address, string changer)
        {
            var dataBefore = await _personalDataService.GetAsync(clientId);

            await _personalDataService.ChangeAddressAsync(clientId, address);

            var dataAfter = await _personalDataService.GetAsync(clientId);

            await
            _auditLogRepository.AddAuditRecordAsync(clientId, dataBefore, dataAfter, AuditRecordType.PersonalData,
                                                    changer);
        }