Пример #1
0
 private string GetBrand(Domain.Models.Consume consume)
 => _database.Brand.FirstOrDefault(brand => brand.Barcode == consume.Barcode)?.Name ?? "Ukjent";
Пример #2
0
        public async Task Add(Domain.Models.Consume consume)
        {
            await _database.Consume.AddAsync(consume);

            await _database.SaveChangesAsync();
        }