private string GetBrand(Domain.Models.Consume consume) => _database.Brand.FirstOrDefault(brand => brand.Barcode == consume.Barcode)?.Name ?? "Ukjent";
public async Task Add(Domain.Models.Consume consume) { await _database.Consume.AddAsync(consume); await _database.SaveChangesAsync(); }