Exemple #1
0
 public Product AddProduct(
     int id,
     string name,
     decimal price,
     int count = 1)
 {
     _productRepositories.AddOrUpdateProdcut(id, name, price, count);
     return(_productRepositories.GetProductById(id));
 }