public async Task ChangeLastNameAsync(string clientId, string lastName, string changer) { var dataBefore = await _personalDataService.GetAsync(clientId); await _personalDataService.ChangeLastNameAsync(clientId, lastName); var dataAfter = await _personalDataService.GetAsync(clientId); await _auditLogRepository.AddAuditRecordAsync(clientId, dataBefore, dataAfter, AuditRecordType.PersonalData, changer); }