Esempio n. 1
0
        public bool Takvim_Update(OyunTakvimi user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        OyunTakvimi takvim = te.OyunTakvimi.FirstOrDefault(f => f.TakvimId == user.TakvimId);

                        takvim.TakvimId = user.TakvimId;
                        takvim.Yil      = user.Yil;
                        takvim.Aylar    = user.Aylar;
                        takvim.OyunNo   = user.OyunNo;
                        takvim.Gunler   = user.Gunler;
                        takvim.Saat     = user.Saat;
                        takvim.SahneNo  = user.SahneNo;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 2
0
        public bool Blok_Update(Blok user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Blok blok = te.Blok.FirstOrDefault(f => f.BlokID == user.BlokID);

                        blok.BlokID   = user.BlokID;
                        blok.BlokTuru = user.BlokTuru;

                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 3
0
        public bool Adres_Update(Adres user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Adres adresler = te.Adres.FirstOrDefault(f => f.AdresID == user.AdresID);

                        adresler.AdresID = user.AdresID;
                        adresler.Adres1  = user.Adres1;
                        adresler.Telefon = user.Telefon;
                        adresler.IlceNo  = user.IlceNo;

                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 4
0
        public bool Oyunlar_Update(Oyunlar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Oyunlar oyunlar = te.Oyunlar.FirstOrDefault(f => f.OyunId == user.OyunId);

                        oyunlar.OyunId     = user.OyunId;
                        oyunlar.OyunAdi    = user.OyunAdi;
                        oyunlar.Imdb       = user.Imdb;
                        oyunlar.OyunSuresi = user.OyunSuresi;
                        oyunlar.OyunFiyati = user.OyunFiyati;
                        oyunlar.OyunTarih  = user.OyunTarih;
                        oyunlar.OyunDurumu = user.OyunDurumu;
                        oyunlar.VideoID    = user.VideoID;
                        oyunlar.SatisID    = user.SatisID;
                        oyunlar.OyunTuruID = user.OyunTuruID;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 5
0
        public bool Foto_Update(Fotograflar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Fotograflar fotolar = te.Fotograflar.FirstOrDefault(f => f.FotoId == user.FotoId);

                        fotolar.FotoId   = user.FotoId;
                        fotolar.FotoAdi  = user.FotoAdi;
                        fotolar.FotoLink = user.FotoLink;
                        fotolar.OyunNo   = user.OyunNo;

                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 6
0
        public bool Koltuk_Update(Koltuk user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Koltuk koltuk = te.Koltuk.FirstOrDefault(f => f.KoltukID == user.KoltukID);

                        koltuk.KoltukID       = user.KoltukID;
                        koltuk.BlokID         = user.BlokID;
                        koltuk.SahneID        = user.SahneID;
                        koltuk.KoltukNumarasi = user.KoltukNumarasi;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 7
0
        public bool Yorum_Update(Yorumlar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Yorumlar yorumlar = te.Yorumlar.FirstOrDefault(f => f.YorumId == user.YorumId);

                        yorumlar.YorumId     = user.YorumId;
                        yorumlar.Konu        = user.Konu;
                        yorumlar.Aciklama    = user.Aciklama;
                        yorumlar.KullaniciID = user.KullaniciID;
                        yorumlar.OyunID      = user.OyunID;
                        yorumlar.ResimID     = user.ResimID;

                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 8
0
        public bool Tiyatro_Insert(Tiyatrolar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Tiyatrolar tytr = new Tiyatrolar();

                        tytr.TiyatroID  = user.TiyatroID;
                        tytr.TiyatroAdi = user.TiyatroAdi;
                        tytr.AdresID    = user.AdresID;

                        te.Tiyatrolar.Add(tytr);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
            return(true);
        }
Esempio n. 9
0
        public bool Tiyatro_Update(Tiyatrolar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Tiyatrolar tiyatro = te.Tiyatrolar.FirstOrDefault(f => f.TiyatroID == user.TiyatroID);

                        tiyatro.TiyatroID  = user.TiyatroID;
                        tiyatro.TiyatroAdi = user.TiyatroAdi;
                        tiyatro.AdresID    = user.AdresID;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 10
0
        public bool Ilce_Update(Ilceler user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Ilceler ilceler = te.Ilceler.FirstOrDefault(f => f.IlcelerID == user.IlcelerID);

                        ilceler.IlcelerID = user.IlcelerID;
                        ilceler.IlceAdi   = user.IlceAdi;

                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 11
0
        public bool Rol_Insert(Rol user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Rol rol = new Rol();

                        rol.RolID   = rol.RolID;
                        rol.RolTuru = rol.RolTuru;

                        te.Rol.Add(rol);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 12
0
        public bool Ilce_Insert(Ilceler user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Ilceler ilce = new Ilceler();

                        ilce.IlcelerID = user.IlcelerID;
                        ilce.IlceAdi   = user.IlceAdi;

                        te.Ilceler.Add(ilce);
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 13
0
        public bool Fiyat_Update(Fiyat user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Fiyat fyt = te.Fiyat.FirstOrDefault(f => f.FiyatId == user.FiyatId);

                        fyt.FiyatId  = user.FiyatId;
                        fyt.TurID    = user.TurID;
                        fyt.Fiyat1   = user.Fiyat1;
                        fyt.KDV      = user.KDV;
                        fyt.KarOrani = user.KarOrani;

                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 14
0
        public bool Fiyat_Insert(Fiyat user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Fiyat fiyat = new Fiyat();

                        fiyat.FiyatId  = user.FiyatId;
                        fiyat.TurID    = user.TurID;
                        fiyat.Fiyat1   = user.Fiyat1;
                        fiyat.KDV      = user.KDV;
                        fiyat.KarOrani = user.KarOrani;

                        te.Fiyat.Add(fiyat);
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 15
0
        public bool Oyuncular_Update(Oyuncular user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Oyuncular oyuncu = te.Oyuncular.FirstOrDefault(f => f.OyuncuId == user.OyuncuId);

                        oyuncu.OyuncuId         = user.OyuncuId;
                        oyuncu.OyuncuAdi        = user.OyuncuAdi;
                        oyuncu.OyuncuResimLinki = user.OyuncuResimLinki;
                        oyuncu.OyunID           = user.OyunID;
                        oyuncu.OyuncuSoyadi     = user.OyuncuSoyadi;
                        oyuncu.Yazar            = user.Yazar;
                        oyuncu.Yonetmen         = user.Yonetmen;
                        oyuncu.Ceviren          = user.Ceviren;
                        oyuncu.Muzik            = user.Muzik;

                        te.Oyuncular.Add(oyuncu);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 16
0
        public bool Iletisim_Insert(Iletisim user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Iletisim iletisim = new Iletisim();

                        iletisim.IletisimID = user.IletisimID;
                        iletisim.Adres      = user.Adres;
                        iletisim.Telefon    = user.Telefon;
                        iletisim.Mail       = user.Mail;

                        te.Iletisim.Add(iletisim);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 17
0
        public bool Koltuk_Insert(Koltuk user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Koltuk kltk = new Koltuk();

                        kltk.KoltukID       = user.KoltukID;
                        kltk.BlokID         = user.BlokID;
                        kltk.SahneID        = user.SahneID;
                        kltk.KoltukNumarasi = user.KoltukNumarasi;

                        te.Koltuk.Add(kltk);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 18
0
        public bool Iletisim_Update(Iletisim user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Iletisim ileti = te.Iletisim.FirstOrDefault(f => f.IletisimID == user.IletisimID);

                        ileti.IletisimID = user.IletisimID;
                        ileti.Adres      = user.Adres;
                        ileti.Telefon    = user.Telefon;
                        ileti.Mail       = user.Mail;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 19
0
        public bool Yorum_Insert(Yorumlar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Yorumlar yorum = new Yorumlar();

                        yorum.YorumId     = user.YorumId;
                        yorum.Konu        = user.Konu;
                        yorum.Aciklama    = user.Aciklama;
                        yorum.KullaniciID = user.KullaniciID;
                        yorum.OyunID      = user.OyunID;
                        yorum.ResimID     = user.ResimID;

                        te.Yorumlar.Add(yorum);
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 20
0
        public bool Video_Insert(Video user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Video kayıt = new Video();

                        kayıt.VideoId   = user.VideoId;
                        kayıt.VideoAdi  = user.VideoAdi;
                        kayıt.VideoLink = user.VideoLink;

                        te.Video.Add(kayıt);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 21
0
        public bool Oyunlar_Insert(Oyunlar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Oyunlar oyun = new Oyunlar();

                        oyun.OyunId     = user.OyunId;
                        oyun.OyunAdi    = user.OyunAdi;
                        oyun.Imdb       = user.Imdb;
                        oyun.OyunSuresi = user.OyunSuresi;
                        oyun.OyunFiyati = user.OyunFiyati;
                        oyun.OyunTarih  = user.OyunTarih;
                        oyun.OyunDurumu = user.OyunDurumu;
                        oyun.VideoID    = user.VideoID;
                        oyun.SatisID    = user.SatisID;
                        oyun.OyunTuruID = user.OyunTuruID;

                        te.Oyunlar.Add(oyun);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 22
0
        public bool Video_Update(Video user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Video video = te.Video.FirstOrDefault(f => f.VideoId == user.VideoId);

                        video.VideoId   = user.VideoId;
                        video.VideoAdi  = user.VideoAdi;
                        video.VideoLink = user.VideoLink;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 23
0
        public bool Foto_Insert(Fotograflar user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Fotograflar foto = new Fotograflar();

                        foto.FotoId   = user.FotoId;
                        foto.FotoAdi  = user.FotoAdi;
                        foto.FotoLink = user.FotoLink;
                        foto.OyunNo   = user.OyunNo;

                        te.Fotograflar.Add(foto);
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 24
0
        public bool KullaniciTuru_Insert(KullaniciTuru user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        KullaniciTuru ktur = new KullaniciTuru();

                        ktur.TurId        = user.TurId;
                        ktur.IndirimOrani = user.IndirimOrani;
                        ktur.TurAdi       = user.TurAdi;

                        te.KullaniciTuru.Add(ktur);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 25
0
        public bool Blok_Insert(Blok user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Blok blk = new Blok();

                        blk.BlokID   = user.BlokID;
                        blk.BlokTuru = user.BlokTuru;

                        te.Blok.Add(blk);
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 26
0
        public bool KullaniciTuru_Update(KullaniciTuru user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        KullaniciTuru kTuru = te.KullaniciTuru.FirstOrDefault(f => f.TurId == user.TurId);

                        kTuru.TurId        = user.TurId;
                        kTuru.IndirimOrani = user.IndirimOrani;
                        kTuru.TurAdi       = user.TurAdi;

                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 27
0
        public bool Adres_Insert(Adres user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Adres adres = new Adres();

                        adres.AdresID = user.AdresID;
                        adres.Adres1  = user.Adres1;
                        adres.Telefon = user.Telefon;
                        adres.IlceNo  = user.IlceNo;

                        te.Adres.Add(adres);
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 28
0
        public bool Oyuncular_Insert(Oyuncular user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Oyuncular oync = new Oyuncular();
                        oync.OyuncuId         = user.OyuncuId;
                        oync.OyuncuAdi        = user.OyuncuAdi;
                        oync.OyuncuResimLinki = user.OyuncuResimLinki;
                        oync.OyunID           = user.OyunID;
                        oync.OyuncuSoyadi     = user.OyuncuSoyadi;
                        oync.Yazar            = user.Yazar;
                        oync.Yonetmen         = user.Yonetmen;
                        oync.Ceviren          = user.Ceviren;
                        oync.Muzik            = user.Muzik;

                        te.Oyuncular.Add(oync);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }
Esempio n. 29
0
        public bool Kullanici_Update(Kullanici user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        Kullanici klnc = te.Kullanici.FirstOrDefault(f => f.KullaniciID == user.KullaniciID);

                        klnc.KullaniciID     = user.KullaniciID;
                        klnc.Sifre           = user.Sifre;
                        klnc.SifreTekrari    = user.SifreTekrari;
                        klnc.KullaniciAdi    = user.KullaniciAdi;
                        klnc.KullaniciSoyadi = user.KullaniciSoyadi;
                        klnc.Telefon         = user.Telefon;
                        klnc.EPosta          = user.EPosta;
                        klnc.MesajID         = user.MesajID;
                        klnc.UyeKodu         = user.UyeKodu;
                        klnc.Onay            = user.Onay;
                        klnc.RolID           = user.RolID;
                        klnc.TC = user.TC;
                        te.SaveChanges();
                        scope.Complete();
                        return(true);
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                        return(false);
                    }
                }
            }
        }
Esempio n. 30
0
        public bool Takvim_Insert(OyunTakvimi user)
        {
            using (TIYATROEntities te = new TIYATROEntities())
            {
                using (TransactionScope scope = new TransactionScope())
                {
                    try
                    {
                        OyunTakvimi tkvm = new OyunTakvimi();

                        tkvm.TakvimId = user.TakvimId;
                        tkvm.Yil      = user.Yil;
                        tkvm.Aylar    = user.Aylar;
                        tkvm.OyunNo   = user.OyunNo;
                        tkvm.Gunler   = user.Gunler;
                        tkvm.Saat     = user.Saat;
                        tkvm.SahneNo  = user.SahneNo;

                        te.OyunTakvimi.Add(tkvm);
                        te.SaveChanges();
                        scope.Complete();
                    }
                    catch (Exception)
                    {
                        scope.Dispose();
                    }
                }
            }
            return(true);
        }