Exemplo n.º 1
0
 public void Addproduct(int id, string name, double price, int quantity)
 => ProductsDB.Add(new Product {
     ID = id, Name = name, Price = price, Quantity = quantity
 });