/// <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))); }
public async Task <IEnumerable <Player> > GetPlayers() { return(await player.GetAll()); }