Пример #1
0
 public Reservation(int id, DateTime time, Customer customer, Whiskey whiskey)
 {
     Id        = id;
     Orderdate = time;
     //Customer = customer.UserName;
     //this.Products = new HashSet<Whiskey>();
 }
Пример #2
0
        /*public Whiskey(int id, string name, int age, string origin, float alcoholPercentage, string imagePath, WhiskeyType whiskeyType)
         * {
         *  Id = id;
         *  Name = name;
         *  Age = age;
         *  Origin = origin;
         *  AlcoholPercentage = alcoholPercentage;
         *  ImagePath = imagePath;
         *  WhiskeyType = whiskeyType;
         * }*/

        // Development constructor for Mock_reservations.

        /*public Whiskey(string name)
         * {
         *  Name = name;
         * }*/

        public Whiskey(Whiskey product)
        {
            Id                = product.Id;
            Name              = product.Name;
            Age               = product.Age;
            Origin            = product.Origin;
            AlcoholPercentage = product.AlcoholPercentage;
            ImagePath         = product.ImagePath;
            WhiskeyType       = product.WhiskeyType;
        }