public ActionResult Guncelle(TblMusteriler prm1) { var musteri = db.TblMusteriler.Find(prm1.MUSTERIID); musteri.MUSTERIAD = prm1.MUSTERIAD; musteri.MUSTERISOYAD = prm1.MUSTERISOYAD; db.SaveChanges(); return(RedirectToAction("Index")); }
//Guncelleme public ActionResult Guncelle(TblMusteriler p1) { var musteri = db.TblMusteriler.Find(p1.MusteriId);//p1 in id sine göre güncelle musteri.MusteriAd = p1.MusteriAd; musteri.MusteriSoyad = p1.MusteriSoyad; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Guncelle(TblMusteriler a1) { var mstr = db.TblMusteriler.Find(a1.MusteriId); mstr.MusteriId = a1.MusteriId; mstr.MusteriAd = a1.MusteriAd; mstr.MusteriSoyad = a1.MusteriSoyad; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniKayit(TblMusteriler a1) { if (!ModelState.IsValid) { return(View("YeniKayit")); } db.TblMusteriler.Add(a1); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult YeniMusteri(TblMusteriler prm1) { if (!ModelState.IsValid) { return(View("YeniMusteri")); } db.TblMusteriler.Add(prm1); db.SaveChanges(); return(View()); }
public ActionResult YeniMusteri(TblMusteriler p1) { //validation kontrolü if (!ModelState.IsValid) { return(View("YeniMusteri")); } db.TblMusteriler.Add(p1); db.SaveChanges(); return(RedirectToAction("Index")); }