namespace CocktailWeb.Data
{
    public class Cocktail
    {
        public int Id { get; set; }
        public string Name { get; set; } = null!;

        public string? Ersteller { get; set; }

        public string? ImageURL { get; set; }

        public int Counter { get; set; }        

        public bool IsAlcoholic { get
            {
                return Cocktailflaschen.Any(f => f.Flasche.Alkoholisch);
            } 
        }

        public List<CocktailFlasche> Cocktailflaschen { get; set; } = new();
    }
}
