public void GenelAyarlarSil(GenelAyarlarDTO entity)
        {
            var genelayar = genelAyarlarRepository.GetirListele().Where(r => r.GenelAyarID == entity.GenelAyarID).FirstOrDefault();

            genelayar.AdSoyad            = entity.AdSoyad;
            genelayar.EmailAdresi        = entity.EmailAdresi;
            genelayar.KullaniciAdi       = entity.KullaniciAdi;
            genelayar.KullaniciSifre     = entity.KullaniciSifre;
            genelayar.WebsiteAdi         = entity.WebsiteAdi;
            genelayar.WebsiteAdresi      = entity.WebsiteAdresi;
            genelayar.WebsiteEmail       = entity.WebsiteEmail;
            genelayar.WebsiteEmailParola = entity.WebsiteEmailParola;
            genelayar.SmtpAdres          = entity.SmtpAdres;
            genelayar.SmtpPort           = entity.SmptPort;

            genelAyarlarRepository.Sil(genelayar);
            genelAyarlarRepository.Context.SaveChanges();
        }
        public void GenelAyarlarEkle(GenelAyarlarDTO entity)
        {
            GenelAyarlar genelAyarlar = new GenelAyarlar
            {
                AdSoyad            = entity.AdSoyad,
                EmailAdresi        = entity.EmailAdresi,
                KullaniciAdi       = entity.KullaniciAdi,
                KullaniciSifre     = entity.KullaniciSifre,
                WebsiteAdi         = entity.WebsiteAdi,
                WebsiteAdresi      = entity.WebsiteAdresi,
                WebsiteEmail       = entity.WebsiteEmail,
                WebsiteEmailParola = entity.WebsiteEmailParola,
                SmtpAdres          = entity.SmtpAdres,
                SmtpPort           = entity.SmptPort
            };

            genelAyarlarRepository.Ekle(genelAyarlar);
            genelAyarlarRepository.Context.SaveChanges();
        }