GetProduct() public méthode

public GetProduct ( string product ) : ItemObject
product string
Résultat ItemObject
Exemple #1
0
        protected void ItemCommand(Object Sender, RepeaterCommandEventArgs e)
        {
            string[] split        = ((string)e.CommandArgument).Split(',');
            string   productID    = split[0];
            bool     in_whishlist = bool.Parse(split[1]);

            if (in_whishlist)
            {
                Handler.RemoveProductFromWhishList(productID);

                Product searchProduct = GetProductFromSearchResults(productID);
                searchProduct.in_whishlist = false;

                PreSelectedLink.InnerText = "Lista de artículos pre-seleccionados (" + Handler.WhishList(Session["Category"].ToString()).Count + ")";
            }
            else
            {
                MeliService ms      = MeliService.GetService();
                ItemObject  product = ms.GetProduct(productID);

                bool pertenece = Handler.IsProductInWishList(productID);
                if (!pertenece)
                {
                    Handler.AddProductToWhishList(product);
                    Product searchProduct = GetProductFromSearchResults(productID);
                    searchProduct.in_whishlist = true;
                }
            }
            PreSelectedLink.InnerText = "Lista de artículos pre-seleccionados (" + Handler.WhishList(Session["Category"].ToString()).Count + ")";

            BindRepeater();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ms = MeliService.GetService();

            string product = Request ["productID"].ToString();

            this.Item = ms.GetProduct(product);

            this.customersRepeater.DataSource = Item.pictures;

            this.customersRepeater.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ms = MeliService.GetService ();

            string product = Request ["productID"].ToString ();

            this.Item = ms.GetProduct(product);

            this.customersRepeater.DataSource = Item.pictures;

            this.customersRepeater.DataBind();
        }