예제 #1
0
        public async Task <Product> GetProduct(string pId)
        {
            FirebaseManegment wDB   = new FirebaseManegment();
            Product           wProd = await wDB.GetProductById(pId);

            return(wProd);
        }
예제 #2
0
        public async Task <WriteResult> AddProductToCart(string pUserId, string pIdProd, int pQauntityBuy)
        {
            FirebaseManegment wDB = new FirebaseManegment();

            AbbigliamentoECommerceEntity.Product wProd = await wDB.GetProductById(pIdProd);

            return(await wDB.AddProductToCart(wProd, pUserId, pQauntityBuy));
        }