public OrganisationDTO(Models.Database.Organisation organisation, OrganisationAccessLog organisationAccessLog, int total, int balance) { Id = organisation.Id.ToString(); Balance = balance; Name = organisation.Name; Total = total; }
private async Task UpdateLogs(Wallet wallet, Organisation organisation, ScanType scanType) { var newCount = new OrganisationAccessLog() { Wallet = wallet, Organisation = organisation, CreatedAt = DateTime.UtcNow, ScanType = scanType }; await _organisationAccessLogRepository.AddAsync(newCount); await _organisationAccessLogRepository.SaveAsync(); }