public void KullanicilarSil(KullanicilarDTO entity) { var kullanici = kullanicilarRepository.GetirListele().Where(r => r.KullaniciID == entity.KullaniciID).FirstOrDefault(); kullanici.KullaniciAdi = entity.KullaniciAdi; kullanici.KullaniciSifre = entity.KullaniciSifre; kullanici.AdSoyad = entity.AdSoyad; kullanici.Telefon = entity.Telefon; kullanici.Email = entity.Email; kullanicilarRepository.Sil(kullanici); kullanicilarRepository.Context.SaveChanges(); }
public void KullanicilarEkle(KullanicilarDTO entity) { Kullanici kullanici = new Kullanici { KullaniciYetkiID = entity.KullaniciYetkiID, KullaniciAdi = entity.KullaniciAdi, KullaniciSifre = entity.KullaniciSifre, AdSoyad = entity.AdSoyad, Telefon = entity.Telefon, Email = entity.Email }; kullanicilarRepository.Ekle(kullanici); kullanicilarRepository.Context.SaveChanges(); }