Exemplo n.º 1
0
 public List <string> GetProductIds(Pcl.ProductType type)
 {
     return(this.ProductsDictionary.Values.Where(p => p.ProductType == type).Select(p => p.Id).ToList());
 }
Exemplo n.º 2
0
 public int CountProducts(Pcl.ProductType type)
 {
     return(this.ProductsDictionary.Values.Count(p => p.ProductType == type));
 }
Exemplo n.º 3
0
 public List <Product> GetProducts(Pcl.ProductType type)
 {
     return(this.ProductsDictionary.Values.Where(p => p.ProductType == type).ToList());
 }