public async Task <Product> GetProduct(string pId) { FirebaseManegment wDB = new FirebaseManegment(); Product wProd = await wDB.GetProductById(pId); return(wProd); }
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)); }