Ejemplo n.º 1
0
        public int UrunEkle(Urun urun)
        {
            var sonuc = _repo.Get(x => x.UrunAdi == urun.UrunAdi);

            if (sonuc != null)
            {
                return(0);
            }
            else
            {
                _repo.Add(urun);
                _unit.Save();
                return(1);
            }
        }