public void KullanicilarGuncelle(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.Guncelle(); kullanicilarRepository.Context.SaveChanges(); }
private void btn_CalisanGuncelle_Click(object sender, EventArgs e) { t = new Kullanicilar() { FirmaId = k.FirmaId, KullaniciAd = txt_CalisanAd.Text, KullaniciAdi = txt_CalisanAdi.Text, KullaniciParola = HelperLayer.Helper.MD5eDonustur(txt_CalisanSifre.Text), KullaniciSoyad = txt_CalisanSoyad.Text, RolId = k.RolId, KullaniciId = k.KullaniciId }; calisan.Guncelle(t); }