/// <summary>
 /// Get all product from the shop
 /// </summary>
 /// <returns>collection of products</returns>
 public IEnumerable <ProductEntity> GetAllProducts()
 {
     return(productService.GetAll().Select(i => i.ToBalProduct()));
 }
 /// <summary>
 /// Get all purchases from the shop
 /// </summary>
 /// <returns>collection of purchases</returns>
 public IEnumerable <PurchaseEntity> GetAllPurchases()
 {
     return(purchaseService.GetAll().Select(i => i.ToBalPurchase(productService)));
 }
示例#3
0
 public async Task <IEnumerable <Player> > GetPlayers()
 {
     return(await player.GetAll());
 }