Beispiel #1
0
        public UrunItem FindÜrünItemWithName(string Name)
        {
            UrunItem urunItem = new UrunItem();

            foreach (var item in RestAPI.GetProducts())
            {
                if (Name == item.Name)
                {
                    urunItem = new UrunItem()
                    {
                        ImageSource = item.Url,
                        Urunismi    = item.Name,
                        UrunDetayi  = item.Info,
                        UrunFiyati  = item.Cost.ToString()
                    };
                    break;
                }
            }
            return(urunItem);
        }