public Product(string name, string description, Category category, double rating = 0, int watches = 0, ProductState state = ProductState.Normal) { Category = category; Info = new ProductInformation() { Name = name, Description = description, Rating = rating, Watches = watches, State = state }; }
public Product(ProductInformation info) { Info = new ProductInformation() { Name = info.Name, Description = info.Description, State = info.State, Rating = info.Rating, Watches = info.Watches, Preview = info.Preview }; }