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

            await _personalDataService.ChangeCityAsync(clientId, city);

            var dataAfter = await _personalDataService.GetAsync(clientId);

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