Esempio n. 1
0
        public int BildigimKelimeGuncelle(int Kullaniciid, int kelimeid, int kategoriid)
        {
            Kullanıcı_Kelime tablom = KullaniciKelime.Listele().Find(x => x.Kullanicı_Id == Kullaniciid && x.Kelime_Id == kelimeid && x.Kategori_Id == kategoriid);

            tablom.Kategori_Id = 3;
            int sonuc = KullaniciKelime.Güncelle(tablom);

            return(sonuc);
        }
Esempio n. 2
0
        public int OgrenecegimKelimeGuncelle(int Kullaniciid, int kelimeid, int kategoriid)
        {
            Kullanıcı_Kelime tablo = KullaniciKelime.Listele().Find(x => x.Kullanicı_Id == Kullaniciid && x.Kelime_Id == kelimeid && x.Kategori_Id == kategoriid);

            tablo.Kategori_Id = 2;
            int sonuc = KullaniciKelime.Güncelle(tablo);

            return(sonuc);
        }
        public bool OgrenecegimKelimeListemdeVarmı(int Kelimeid, int Kategoriid, int Kullaniciid)
        {
            bool             Var     = false;
            Kullanıcı_Kelime Kelimem = KullanıcıKelime.Listele().Find(x => x.Kelime_Id == Kelimeid && x.Kategori_Id == Kategoriid && x.Kullanicı_Id == Kullaniciid);

            if (Kelimem == null)
            {
                return(Var);
            }
            else
            {
                Var = true;
                return(Var);
            }
        }
        public bool Varmi(int Kelimeid, int Kullaniciid)
        {
            bool             Var     = false;
            Kullanıcı_Kelime Kelimem = KullanıcıKelime.Listele().Find(x => x.Kelime_Id == Kelimeid && x.Kullanicı_Id == Kullaniciid);

            if (Kelimem == null)
            {
                return(Var);
            }
            else
            {
                Var = true;
                return(Var);
            }
        }
        public int KelimeListemeEkle(int Kullaniciid, int Kategoriid, int Kelimeid)
        {
            BussinesLayerResult <Kullanıcı_Kelime> repo = new BussinesLayerResult <Kullanıcı_Kelime>();
            Kullanıcı_Kelime K_Kelime = KullanıcıKelime.Listele().Find(x => x.Kelime_Id == Kelimeid && x.Kullanicı_Id == Kullaniciid && x.Kategori_Id == Kategoriid);

            if (K_Kelime != null)
            {
                return(0);
            }
            else
            {
                int deger = KullanıcıKelime.Ekle(new Kullanıcı_Kelime
                {
                    Kelime_Id    = Kelimeid,
                    Kullanicı_Id = Kullaniciid,
                    Kategori_Id  = Kategoriid,
                });
                return(1);
            }
        }