Beispiel #1
0
        public override string ToString()
        {
            var message = "Product Name = " + ProductName + " Product Code = " + ProductCode + " with ID " + Id;

            if ((ProductImages != null) && ProductImages.Any())
            {
                message += " Total Photos " + ProductImages.Count();
            }

            return(message);
        }