public Purchase(Guid manufacture, string paymentMethod, List <ProductOrder> products)
 {
     Manufacture = new Manufacture {
         Id = manufacture
     };
     PaymentMethod = paymentMethod;
     Products      = JsonConvert.SerializeObject(products);
 }
Beispiel #2
0
 public Product(Guid category, Guid manufacture, List <Attribute> attributes, List <SalesTable> salesTable)
 {
     SoldSeparately = true;
     Active         = true;
     Bundles        = new List <ProductBundle <Product> >();
     Category       = new Category {
         Id = category
     };
     Manufacture = new Manufacture {
         Id = manufacture
     };
     Attributes = JsonConvert.SerializeObject(attributes);
     SalesTable = JsonConvert.SerializeObject(salesTable);
 }