Пример #1
0
 public static IEnumerable <Product> GetAllProducts()
 {
     return(CartDataBase.Select(id => ProductAPIController.GetProductById(id).Result));
 }
Пример #2
0
 public static IEnumerable <Product> GetProductsBySellerId(int sellerId)
 {
     return(CatalogDataBase[sellerId].Select(id => ProductAPIController.GetProductById(id).Result));
 }