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