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