public async Task <ActionResult> Change(UpdateDocumentsAndStatusModel data) { await _personalDataRepository.UpdateAsync(data); await _kycStatusManager.ChangeKycStatus(data.Id, data.KycStatus); return(this.JsonRequestResult("#pamain", Url.Action("Index"))); }
public async Task UpdatePersonalDataAsync(IPersonalData personalData, string changer) { var dataBefore = await _personalDataRepository.GetAsync(personalData.Id); await _personalDataRepository.UpdateAsync(personalData); var dataAfter = await _personalDataRepository.GetAsync(personalData.Id); await _auditLogRepository.AddAuditRecordAsync(personalData.Id, dataBefore, dataAfter, AuditRecordType.PersonalData, changer); }