Ejemplo n.º 1
0
 public Product(decimal price, string status, int idProductInformation)
 {
     Price = price;
     IdProductInformation = idProductInformation;
     ProductStatus        = new ProductStatus(status);
     ProductInformation   = null;
 }
Ejemplo n.º 2
0
 public Product(decimal price, ProductStatus status, ProductInformation productInformation)
 {
     Price = price;
     //Status = status.GetStatusName();
     ProductInformation = productInformation;
     if (productInformation?.IdEntity != null)
     {
         IdProductInformation = productInformation.IdEntity.Value;
     }
     ProductStatus = status;
 }