コード例 #1
0
 public OrganisationDTO(Models.Database.Organisation organisation, OrganisationAccessLog organisationAccessLog, int total, int balance)
 {
     Id      = organisation.Id.ToString();
     Balance = balance;
     Name    = organisation.Name;
     Total   = total;
 }
コード例 #2
0
        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();
        }