E_Handel.BL.BLProduct.BLProduct C# (CSharp) Method

BLProduct() public method

public BLProduct ( int id, int categoryId, string name, string description, double price, int popularity, int stockQuantity, double VAT, double discount, string trailerUrl = null ) : System.Collections.Generic
id int
categoryId int
name string
description string
price double
popularity int
stockQuantity int
VAT double
discount double
trailerUrl string
return System.Collections.Generic
        public BLProduct(int id, int categoryId, string name, string description, double price, int popularity, int stockQuantity, double VAT, double discount = 0, string trailerUrl = null)
        {
            Id = id;
            CategoryId = categoryId;
            Name = name;
            Description = description;
            Price = price;
            Popularity = popularity;
            StockQuantity = stockQuantity;
            this.VAT = VAT;
            Discount = discount;
            TrailerUrl = trailerUrl;
        }