示例#1
0
        public async Task <List <Product> > GetListProducts(AbbigliamentoECommerceEntity.Product pProduct)
        {
            FirebaseManegment wDB       = new FirebaseManegment();
            List <Product>    wListProd = await wDB.GetProducts(pProduct, 0);

            return(wListProd);
        }
        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));
        }
示例#3
0
 public async Task InsertProduct(AbbigliamentoECommerceEntity.Product pProduct, string pToken)
 {
     try
     {
         FirebaseManegment wDB = new FirebaseManegment();
         await wDB.InsertProduct(pProduct, pToken);
     }
     catch (Exception ex)
     {
     }
 }